NFSv4: Avoid unnecessary scans of filesystems for expired delegations

[ Upstream commit f163aa81a7 ]

The amount of looping through the list of delegations is occasionally
leading to soft lockups.  If the state manager was asked to reap the
expired delegations, it should scan only those filesystems that hold
delegations that need to be reaped.

Fixes: 7f156ef0bf ("NFSv4: Clean up nfs_delegation_reap_expired()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Trond Myklebust 2025-02-18 19:03:21 -05:00 • committed by Greg Kroah-Hartman
commit 8765bc2638
2 changed files with 8 additions and 0 deletions