Well over a year ago I made other attempts to fix the problem of NFS failing to send an unlock when signalled. Those attempts were terrible. Here's another, smaller version that keeps two simple fixes and takes the approach of skipping the wait if FL_CLOSE is set as was suggested by Trond. I think this is probably a little late for 4.11. Comments and review are welcomed. since v1: - add Christoph's reviewed-by on 1/4 and 2/4 and fixup switch indentation on 2/4 since v2: - don't sleep in rpciod to wait for I/O completion, just send the unlock immediately for both v3 and v4. Benjamin Coddington (4): NFS4: remove a redundant lock range check NFS: Move the flock open mode check into nfs_flock() locks: Set FL_CLOSE when removing flock locks on close() NFS: Always send an unlock for FL_CLOSE fs/locks.c | 2 +- fs/nfs/file.c | 28 +++++++++++++++++++++------- fs/nfs/nfs4proc.c | 17 ----------------- 3 files changed, 22 insertions(+), 25 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html