]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix _nfs4_do_setlk()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 30 Jul 2018 02:21:22 +0000 (22:21 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 2 Aug 2018 03:17:06 +0000 (23:17 -0400)
commit6c0f1c6828e569f46ef9377abf8e9b6ec4e8c884
treeaad2ba8b9d40075cc43d3c9ac0a272a2ec969af6
parent7bd9208448acfe85285449a835753c04dd51bc4e
NFSv4: Fix _nfs4_do_setlk()

The patch to fix the case where a lock request was interrupted ended up
changing default handling of errors such as NFS4ERR_DENIED and caused the
client to immediately resend the lock request. Let's do a partial revert
of that request so that the default is now to exit, but change the way
we handle resends to take into account the fact that the user may have
interrupted the request.

Reported-by: Kenneth Johansson <ken@kenjo.org>
Fixes: 5db31cd85d17 ("NFSv4: Don't add a new lock on an interrupted wait..")
Cc: Benjamin Coddington <bcodding@redhat.com>
Cc: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
fs/nfs/nfs4proc.c