]> git.ipfire.org Git - thirdparty/linux.git/commit
NFS: Fix directory delegation verifier checks
authorAnna Schumaker <anna.schumaker@oracle.com>
Fri, 19 Dec 2025 20:13:44 +0000 (15:13 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Jan 2026 04:03:25 +0000 (23:03 -0500)
commit6f9bda2337f8b0a4c10ed5630e85eceb126a2c5c
tree809d20b9c4eacd881d0141d2688934f49224cbd7
parent5a74af51c3a6f4cd22c128b0c1c019f68fa90011
NFS: Fix directory delegation verifier checks

Doing this check in nfs_check_verifier() resulted in many, many more
lookups on the wire when running Christoph's delegation benchmarking
script. After some experimentation, I found that we can treat directory
delegations exactly the same as having a delegated verifier when we
reach nfs4_lookup_revalidate() for the best performance.

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