Re: [PATCH v2] nfsd: don't free session slots that are still in use

From: Chuck Lever

Date: Tue May 26 2026 - 14:42:33 EST


From: Chuck Lever <chuck.lever@xxxxxxxxxx>

On Tue, 26 May 2026 12:24:48 -0400, Jeff Layton wrote:
> nfsd4_sequence() can free the very slot it is currently processing.
> When the session shrinker has reduced se_target_maxslots below
> se_fchannel.maxreqs, the shrink path checks three conditions before
> calling free_session_slots():
>
> 1. se_target_maxslots < maxreqs (shrink was advertised)
> 2. slot->sl_generation == se_slot_gen (slot is up-to-date)
> 3. seq->maxslots <= se_target_maxslots (client acknowledges)
>
> [...]

Applied to nfsd-testing, thanks!

[1/1] nfsd: don't free session slots that are still in use
commit: 6085718398d83e16ccdc864c209493671f3c5998

--
Chuck Lever <chuck.lever@xxxxxxxxxx>