From: adilger Date: Mon, 8 Sep 2003 20:14:23 +0000 (+0000) Subject: Don't fail assertion if lock has waiters. X-Git-Tag: 0.9.1~270 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=33f931dac9d2999ed2812685ccddc4a4e098f9e6;p=fs%2Flustre-release.git Don't fail assertion if lock has waiters. Was apparently fixed in the client and development branches, but not HEAD. b=1815 --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 791dfbc..03556bc 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -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);