]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Don't add a new lock on an interrupted wait for LOCK
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 3 May 2018 11:12:57 +0000 (07:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:02:16 +0000 (15:02 -0400)
commit649b5c87e8002d841f8244355e8f627b20755387
treee16ea71b9621f236d3f9903c71bd7a2ba026ee2f
parent8a8ff97c811e242c62b08215fbebd319c18f944b
NFSv4: Don't add a new lock on an interrupted wait for LOCK

If the wait for a LOCK operation is interrupted, and then the file is
closed, the locks cleanup code will assume that no new locks will be added
to the inode after it has completed.  We already have a mechanism to detect
if there was signal, so let's use that to avoid recreating the local lock
once the RPC completes.  Also skip re-sending the LOCK operation for the
various error cases if we were signaled.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
[Trond: Fix inverted test of locks_lock_inode_wait()]
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c