]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSv4: Don't trigger uneccessary scans for return-on-close delegations
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Feb 2025 21:50:30 +0000 (16:50 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 Mar 2025 20:51:52 +0000 (16:51 -0400)
commit47acca884f714f41d95dc654f802845544554784
tree0fa836b46c9671b52840dd56e1306ce0def720c2
parent4701f33a10702d5fc577c32434eb62adde0a1ae1
NFSv4: Don't trigger uneccessary scans for return-on-close delegations

The amount of looping through the list of delegations is occasionally
leading to soft lockups. Avoid at least some loops by not requiring the
NFSv4 state manager to scan for delegations that are marked for
return-on-close. Instead, either mark them for immediate return (if
possible) or else leave it up to nfs4_inode_return_delegation_on_close()
to return them once the file is closed by the application.

Fixes: b757144fd77c ("NFSv4: Be less aggressive about returning delegations for open files")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c