]> git.ipfire.org Git - thirdparty/linux.git/commit
NFSv4: Fix nfs_clear_verifier_delegated() for delegated directories
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 31 Dec 2025 21:41:15 +0000 (16:41 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Jan 2026 04:03:26 +0000 (23:03 -0500)
commit105c2db2474f50f109082ab8d070efcc8c3d52bd
tree43c073506dd93539e6c4408740199d2d02eb581c
parent6f9bda2337f8b0a4c10ed5630e85eceb126a2c5c
NFSv4: Fix nfs_clear_verifier_delegated() for delegated directories

If the client returns a directory delegation, then look up all the child
dentries, and clear their 'verifier delegated' bit, unless subject to a
file delegation.

Similarly, if a file delegation is being returned, check if there is a
directory delegation before clearing a 'verifier delegated' bit.

Reported-by: Christoph Hellwig <hch@lst.de>
Fixes: 156b09482933 ("NFS: Request a directory delegation on ACCESS, CREATE, and UNLINK")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c