All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nfsd: fix handling of timed out idmap lookups
@ 2025-11-27 17:57 Anthony Iliopoulos
  2025-11-27 17:57 ` [PATCH 1/2] nfsd: never defer requests during idmap lookup Anthony Iliopoulos
  2025-11-27 17:57 ` [PATCH 2/2] nfsd: fix return error code for nfsd_map_name_to_[ug]id Anthony Iliopoulos
  0 siblings, 2 replies; 9+ messages in thread
From: Anthony Iliopoulos @ 2025-11-27 17:57 UTC (permalink / raw)
  To: Chuck Lever, Jeff Layton; +Cc: linux-nfs

This series addresses an issue occurring during v4 compound decoding, when
idmap lookup upcall responses are delayed in userspace. This causes the
related request to be marked for deferral and to be dropped, preventing
nfs4svc_encode_compoundres from being executed and thus never clearing the
session slot flag NFSD4_SLOT_INUSE. Subsequent requests will fail with
NFSERR_JUKEBOX, given that the slot will be marked as in use.

The first patch fixes this by making sure that no deferrals can happen
during decoding.

The second patch fixes the return code of delayed idmap lookups, so that
clients will retry the operation instead of aborting with an error.

Anthony Iliopoulos (2):
  nfsd: never defer requests during idmap lookup
  nfsd: fix return error code for nfsd_map_name_to_[ug]id

 fs/nfsd/nfs4idmap.c | 4 ++++
 fs/nfsd/nfs4xdr.c   | 7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-30 19:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 17:57 [PATCH 0/2] nfsd: fix handling of timed out idmap lookups Anthony Iliopoulos
2025-11-27 17:57 ` [PATCH 1/2] nfsd: never defer requests during idmap lookup Anthony Iliopoulos
2025-11-28  0:55   ` NeilBrown
2025-11-28 16:09   ` Chuck Lever
2025-11-28 21:20     ` Anthony Iliopoulos
2025-11-29 16:54       ` Chuck Lever
2025-11-30 19:25         ` Chuck Lever
2025-11-27 17:57 ` [PATCH 2/2] nfsd: fix return error code for nfsd_map_name_to_[ug]id Anthony Iliopoulos
2025-11-28  0:46   ` NeilBrown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.