]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Avoid unnecessary scans of filesystems for expired delegations
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 19 Feb 2025 00:03:21 +0000 (19:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:24 +0000 (14:39 +0200)
commit8765bc2638ce755d6ec159d2fa3296d870da6eed
tree46a3637cf66def7e9aef73ca7fce284b741f2847
parentac8be75a7deb073439a1bc9dd1f717223bacc496
NFSv4: Avoid unnecessary scans of filesystems for expired delegations

[ Upstream commit f163aa81a799e2d46d7f8f0b42a0e7770eaa0d06 ]

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: 7f156ef0bf45 ("NFSv4: Clean up nfs_delegation_reap_expired()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/delegation.c
include/linux/nfs_fs_sb.h