]> 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)
commit5db31cd85d17ddc57bab4d9d4d31bb8fc510dc87
treee16ea71b9621f236d3f9903c71bd7a2ba026ee2f
parent591c33257e79e86fd089229a4525de6f024006e5
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