Whamcloud - gitweb
b=20433 we should recycle dentries and inodes if only cancelling locks existing
authorLanden <landen@sun.com>
Tue, 27 Jul 2010 11:11:04 +0000 (15:11 +0400)
committerMikhail Pershin <tappro@sun.com>
Wed, 28 Jul 2010 13:25:32 +0000 (17:25 +0400)
i=green
i=adilger

lustre/llite/dcache.c

index 6f1698c..13c4d98 100644 (file)
@@ -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)
 {
 
 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;
 }
 
         return LDLM_ITER_STOP;
 }