From ec367431d95133af03c9f6ee4f911d0c0706810d Mon Sep 17 00:00:00 2001 From: Landen Date: Tue, 27 Jul 2010 15:11:04 +0400 Subject: [PATCH] b=20433 we should recycle dentries and inodes if only cancelling locks existing i=green i=adilger --- lustre/llite/dcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 6f1698c..13c4d989 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -116,6 +116,8 @@ int ll_dcompare(struct dentry *parent, struct qstr *d_name, struct qstr *name) static inline int return_if_equal(struct ldlm_lock *lock, void *data) { + if (lock->l_flags & LDLM_FL_CANCELING) + return LDLM_ITER_CONTINUE; return LDLM_ITER_STOP; } -- 1.8.3.1