Commit 6f9bda2
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: 156b094 ("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>1 parent 5a74af5 commit 6f9bda2
1 file changed
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | 1519 | | |
1528 | 1520 | | |
1529 | 1521 | | |
| |||
2216 | 2208 | | |
2217 | 2209 | | |
2218 | 2210 | | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
2223 | | - | |
2224 | | - | |
2225 | | - | |
2226 | 2211 | | |
2227 | 2212 | | |
2228 | 2213 | | |
| |||
2247 | 2232 | | |
2248 | 2233 | | |
2249 | 2234 | | |
2250 | | - | |
| 2235 | + | |
| 2236 | + | |
2251 | 2237 | | |
2252 | 2238 | | |
2253 | | - | |
2254 | | - | |
2255 | | - | |
2256 | 2239 | | |
2257 | 2240 | | |
2258 | 2241 | | |
| |||
0 commit comments