From 09b74d653b49704ea4dd1d8db7f7928fb89fff50 Mon Sep 17 00:00:00 2001
From: anserper <anserper>
Date: Mon, 28 Apr 2008 20:51:51 +0000
Subject: [PATCH] Branch b1_6 b=15441 i=johann i=tianzy

quota might appear on quota files causing deadlock, this is fixed with this patch
---
 lustre/lvfs/fsfilt_ext3.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c
index 88f31b8059..d134000e6f 100644
--- a/lustre/lvfs/fsfilt_ext3.c
+++ b/lustre/lvfs/fsfilt_ext3.c
@@ -1855,6 +1855,8 @@ static int create_new_quota_files(struct qchk_ctxt *qctxt,
                         GOTO(out, rc = -EINVAL);
                 }
 
+                DQUOT_DROP(file->f_dentry->d_inode);
+
                 rc = v2_write_dqheader(file, i);
                 if (rc) {
                         filp_close(file, 0);
-- 
GitLab