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

[ Upstream commit e767b59e29b8327d25edde65efc743f479f30d0a ]

The amount of looping through the list of delegations is occasionally
leading to soft lockups. If the state manager was asked to manage the
delayed return of delegations, then only scan those filesystems
containing delegations that were marked as being delayed.

Fixes: be20037725d1 ("NFSv4: Fix delegation return in cases where we have to retry")
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