From ab5d030e3a2a415a8bc48a18c4a53604deacdb26 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 28 Aug 2003 18:33:35 +0000 Subject: [PATCH] Don't fail LASSERT if other lockers are pending on semaphore. b=1734 r=zab --- lustre/llite/llite_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 7b73cca..07e9278 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -530,7 +530,7 @@ int ll_setattr_raw(struct inode *inode, struct iattr *attr) if (extent.start == 0) ast_flags = LDLM_AST_DISCARD_DATA; /* 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, ast_flags); -- 1.8.3.1