From 52ac45cf31c7285fa056d346b5d1ca7f11c641e3 Mon Sep 17 00:00:00 2001 From: johann Date: Wed, 6 Aug 2008 16:25:14 +0000 Subject: [PATCH] Branch b1_8_gate b=16140 revert inadvertant commit in the quota code. --- lustre/quota/quota_context.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index 75ef1a9..ce80251 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -205,10 +205,8 @@ static inline struct lustre_qunit *find_qunit(unsigned int hashent, if (qunit->lq_ctxt == qctxt && qdata->qd_id == tmp->qd_id && (qdata->qd_flags & LQUOTA_QUNIT_FLAGS) == - (tmp->qd_flags & LQUOTA_QUNIT_FLAGS)) { - qunit_get(qunit); + (tmp->qd_flags & LQUOTA_QUNIT_FLAGS)) return qunit; - } } return NULL; } @@ -772,8 +770,8 @@ schedule_dqacq(struct obd_device *obd, struct lustre_quota_ctxt *qctxt, spin_lock(&qunit_hash_lock); qunit = dqacq_in_flight(qctxt, qdata); if (qunit) { - if (!wait) - qunit_put(qunit); + if (wait) + qunit_get(qunit); spin_unlock(&qunit_hash_lock); free_qunit(empty); -- 1.8.3.1