]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Avoid unnecessary rescanning of the per-server delegation list
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 21 Aug 2024 18:05:02 +0000 (14:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:33 +0000 (15:10 +0200)
commit3666a2574efab5554777cbbb7dbf0e9474139579
treedd0799409beb6c4e74ca8472440796daed9744d7
parente796a3db57684b8a89a40ec63022412aa0c0a79e
NFS: Avoid unnecessary rescanning of the per-server delegation list

[ Upstream commit f92214e4c312f6ea9d78650cc6291d200f17abb6 ]

If the call to nfs_delegation_grab_inode() fails, we will not have
dropped any locks that require us to rescan the list.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/delegation.c