]> git.baikalelectronics.ru Git - kernel.git/commit
knfsd: Simplify NFS duplicate replay cache
authorTrond Myklebust <trondmy@gmail.com>
Mon, 1 Oct 2018 14:41:55 +0000 (10:41 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 29 Oct 2018 20:58:04 +0000 (16:58 -0400)
commiteef33baa612adf759afee0b0ecf7ef01f3234d20
tree2e232c48b130c2fa2fab9b7ba24c812bcb6da077
parenta09d8a39c0e05a1d3b18e324d854317d32eec95a
knfsd: Simplify NFS duplicate replay cache

Simplify the duplicate replay cache by initialising the preallocated
cache entry, so that we can use it as a key for the cache lookup.

Note that the 99.999% case we want to optimise for is still the one
where the lookup fails, and we have to add this entry to the cache,
so preinitialising should not cause a performance penalty.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c