From: wangdi Date: Thu, 5 Apr 2007 04:45:53 +0000 (+0000) Subject: Branch:HEAD X-Git-Tag: 1.4.10~23 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fddc386818cc1358e6c4212a7aaf6b89e5c8099a;p=fs%2Flustre-release.git Branch:HEAD For for GETLK(LDLM_FL_TEST_LOCK), fcntl locks should not be added to the inode lock list. b:5145 r:green, adilger --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 6d4ba77..84c9b06 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -2325,7 +2325,8 @@ int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock) if ((file_lock->fl_flags & FL_FLOCK) && (rc == 0)) ll_flock_lock_file_wait(file, file_lock, (cmd == F_SETLKW)); #ifdef HAVE_F_OP_FLOCK - if ((file_lock->fl_flags & FL_POSIX) &&(rc == 0)) + if ((file_lock->fl_flags & FL_POSIX) && (rc == 0) && + !(flags & LDLM_FL_TEST_LOCK)) posix_lock_file_wait(file, file_lock); #endif