Skip to content
Snippets Groups Projects
Commit 2270bfca authored by tianzy's avatar tianzy
Browse files

Branch b1_6

fix the false qunit_put in qctxt_wait_pending_dqacq()
b=17794
i=tianzy
i=panda
parent ce91481c
No related branches found
No related tags found
No related merge requests found
......@@ -1079,13 +1079,6 @@ qctxt_wait_pending_dqacq(struct lustre_quota_ctxt *qctxt, unsigned int id,
l_wait_event(qunit->lq_waitq, got_qunit(qunit), &lwi);
CDEBUG(D_QUOTA, "qunit(%p) finishes waiting. (rc:%d)\n",
qunit, qunit->lq_rc);
qunit_put(qunit);
do_gettimeofday(&work_end);
timediff = cfs_timeval_sub(&work_end, &work_start, NULL);
lprocfs_counter_add(qctxt->lqc_stats,
isblk ? LQUOTA_WAIT_PENDING_BLK_QUOTA :
LQUOTA_WAIT_PENDING_INO_QUOTA,
timediff);
/* keep same as schedule_dqacq() b=17030 */
spin_lock(&qunit->lq_lock);
if (qunit->lq_rc == 0)
......@@ -1093,6 +1086,13 @@ qctxt_wait_pending_dqacq(struct lustre_quota_ctxt *qctxt, unsigned int id,
else
rc = qunit->lq_rc;
spin_unlock(&qunit->lq_lock);
qunit_put(qunit);
do_gettimeofday(&work_end);
timediff = cfs_timeval_sub(&work_end, &work_start, NULL);
lprocfs_counter_add(qctxt->lqc_stats,
isblk ? LQUOTA_WAIT_PENDING_BLK_QUOTA :
LQUOTA_WAIT_PENDING_INO_QUOTA,
timediff);
} else {
do_gettimeofday(&work_end);
timediff = cfs_timeval_sub(&work_end, &work_start, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment