]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: nfserr_jukebox in nlm_fopen should lead to a retry
authorOlga Kornievskaia <okorniev@redhat.com>
Thu, 21 Aug 2025 20:31:46 +0000 (16:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:18 +0000 (16:23 +0200)
commit4716a38d502fef7a31dd17b3991f22bd0b0f5095
treef8ff44f87a23dfb13c878d24cad227e0c20d0fa4
parent958a45b710b067772c0297e59c0721948d25a903
nfsd: nfserr_jukebox in nlm_fopen should lead to a retry

commit a082e4b4d08a4a0e656d90c2c05da85f23e6d0c9 upstream.

When v3 NLM request finds a conflicting delegation, it triggers
a delegation recall and nfsd_open fails with EAGAIN. nfsd_open
then translates EAGAIN into nfserr_jukebox. In nlm_fopen, instead
of returning nlm_failed for when there is a conflicting delegation,
drop this NLM request so that the client retries. Once delegation
is recalled and if a local lock is claimed, a retry would lead to
nfsd returning a nlm_lck_blocked error or a successful nlm lock.

Fixes: d343fce148a4 ("[PATCH] knfsd: Allow lockd to drop replies as appropriate")
Cc: stable@vger.kernel.org # v6.6
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/lockd.c