]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Avoid unnecessary scans of filesystems for returning delegations
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Feb 2025 23:14:26 +0000 (18:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:24 +0000 (14:39 +0200)
commitac8be75a7deb073439a1bc9dd1f717223bacc496
tree70562c97b4ceed85f31966217d87b4e4c4818ece
parent4595beb5fee9b9e714c1e0e3ce7400b86c24a524
NFSv4: Avoid unnecessary scans of filesystems for returning delegations

[ Upstream commit 35a566a24e58f1b5f89737edf60b77de58719ed0 ]

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

Fixes: af3b61bf6131 ("NFSv4: Clean up nfs_client_return_marked_delegations()")
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