Re: [PATCH] nfsd: convert global state_lock to per-net deleg_lock
From: Chuck Lever
Date: Tue Feb 24 2026 - 09:59:48 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Tue, 24 Feb 2026 08:28:11 -0500, Jeff Layton wrote:
> Replace the global state_lock spinlock with a per-nfsd_net deleg_lock.
> The state_lock was only used to protect delegation lifecycle operations
> (the del_recall_lru list and delegation hash/unhash), all of which are
> scoped to a single network namespace. Making the lock per-net removes
> a source of unnecessary contention between containers.
>
>
> [...]
Applied to nfsd-testing with minor changes, thanks!
[1/1] nfsd: convert global state_lock to per-net deleg_lock
commit: 87d8659010fe5ba78759ad7b8780656f1c3d350a
--
Chuck Lever