]> 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>
Wed, 18 Sep 2024 17:24:06 +0000 (19:24 +0200)
commitd07216aa30e81ce69b95c0d8a4bb9450043c37a1
tree27458f7dc43907118825044d9303da6e7bf1d523
parentd8a7055ffd398ae8f05958f4d8ffe9376cad5d36
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