For for GETLK(LDLM_FL_TEST_LOCK), fcntl locks should not be added to the inode
lock list.
b:5145
r:green, adilger
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