From 9a14678db6480a8d72a777b516224b36ac5daf5b Mon Sep 17 00:00:00 2001 From: tianzy Date: Fri, 5 Sep 2008 06:43:58 +0000 Subject: [PATCH] Branch b1_8 Lustre returns an EQUOTA error before hitting the block quota hardlimit b=16645 i=johann i=panda --- lustre/quota/quota_context.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index fed2295..ef74ccc 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -320,6 +320,12 @@ check_cur_qunit(struct obd_device *obd, limit_org > qdata->qd_count + qunit_sz) qdata->qd_count += qunit_sz; ret = 2; + /* if there are other pending writes for this uid/gid, releasing + * quota is put off until the last pending write b=16645 */ + if (ret == 2 && pending_write) { + CDEBUG(D_QUOTA, "delay quota release\n"); + ret = 0; + } } CDEBUG(D_QUOTA, "type: %c, limit: "LPU64", usage: "LPU64 ", pending_write: "LPU64", record: "LPD64 -- 1.8.3.1