• Trond Myklebust's avatar
    NFSv4: Fix _nfs4_do_setlk() · 6ea76bf5
    Trond Myklebust authored
    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: default avatarKenneth Johansson <ken@kenjo.org>
    Fixes: a3cf9bca ("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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
    6ea76bf5
nfs4proc.c 260 KB