Whamcloud - gitweb
Don't stop iterating over locks after first one is found. From Ottawa.
authoradilger <adilger>
Wed, 30 Jul 2003 18:49:59 +0000 (18:49 +0000)
committeradilger <adilger>
Wed, 30 Jul 2003 18:49:59 +0000 (18:49 +0000)
lustre/llite/llite_lib.c

index 2753b31..df87387 100644 (file)
@@ -362,7 +362,7 @@ static int null_if_equal(struct ldlm_lock *lock, void *data)
         if (lock->l_req_mode != lock->l_granted_mode)
                 return LDLM_ITER_STOP;
 
-        return 0;
+        return LDLM_ITER_CONTINUE;
 }
 
 void ll_clear_inode(struct inode *inode)