]> 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)
commit15f3de8e8fc08066c9f7ab53b955026916715695
tree2e232c48b130c2fa2fab9b7ba24c812bcb6da077
parentf3379671ed3e06f625f7a78a380614f27a90485f
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