Re: [PATCH] sunrpc: start cache request seqno at 1 to fix netlink GET_REQS
From: Chuck Lever
Date: Mon Apr 13 2026 - 13:28:46 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Sat, 11 Apr 2026 17:12:16 -0400, Jeff Layton wrote:
> sunrpc_cache_requests_snapshot() filters requests with
> crq->seqno <= min_seqno. The min_seqno for the first netlink
> dump call is cb->args[0] which is 0. Since next_seqno was
> initialized to 0, the very first cache request got seqno=0
> and was silently skipped by the snapshot (0 <= 0 is true).
>
> This caused netlink-based GET_REQS to return 0 pending requests
> even when a request was queued, preventing mountd from resolving
> cache entries (particularly expkey/nfsd.fh). The unresolved
> CACHE_PENDING state blocked all further notifications for the
> entry, leading to permanent NFS4ERR_DELAY hangs.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] sunrpc: start cache request seqno at 1 to fix netlink GET_REQS
commit: 2dd2484661eb089e5eb2ba9da4b87decb0f3be36
--
Chuck Lever <chuck.lever@xxxxxxxxxx>