Whamcloud - gitweb
Don't fail assertion if lock has waiters.
authoradilger <adilger>
Mon, 8 Sep 2003 20:14:23 +0000 (20:14 +0000)
committeradilger <adilger>
Mon, 8 Sep 2003 20:14:23 +0000 (20:14 +0000)
Was apparently fixed in the client and development branches, but not HEAD.
b=1815

lustre/llite/llite_lib.c

index 791dfbc..03556bc 100644 (file)
@@ -671,7 +671,7 @@ int ll_setattr_raw(struct inode *inode, struct iattr *attr)
                  * pages.  This last one is especially bad for racing
                  * o_append users on other nodes. */
                 /* bug 1639: avoid write/truncate i_sem/DLM deadlock */
-                LASSERT(atomic_read(&inode->i_sem.count) == 0);
+                LASSERT(atomic_read(&inode->i_sem.count) <= 0);
                 up(&inode->i_sem);
                 rc = ll_extent_lock_no_validate(NULL, inode, lsm, LCK_PW,
                                                  &extent, &lockh);