]> git.ipfire.org Git - thirdparty/linux.git/commit
NFS: move the deleg_cur check out of nfs_detach_delegation_locked
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Jan 2026 07:27:06 +0000 (08:27 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 20 Jan 2026 19:49:46 +0000 (14:49 -0500)
commit9f6ddc90d5a2162ecfecbdb5f5ed5bd9f71cc65f
tree75ae01bab51a545e26c16ba14e5982579916b0b1
parent8f7e0b808067afaca0d370c49824c5393101302c
NFS: move the deleg_cur check out of nfs_detach_delegation_locked

nfs_inode_set_delegation as the only direct caller of
nfs_detach_delegation_locked already check this under cl_lock, so
don't repeat it.

Replace the lockdep coverage for the lock that was implicitly provided by
the rcu_dereference_protected call that is removed with an explicit
lockdep assert to keep the coverage.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/delegation.c