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)
commit76ecec21197ab23bb821d8bf584949013efd0494
tree2e232c48b130c2fa2fab9b7ba24c812bcb6da077
parent3e87da5145fc25e18fb934eb496f4e7c4d038e71
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