Trond Myklebust 4c5fab560c nfsd: Don't keep looking up unhashed files in the nfsd file cache
commit d30881f573e565ebb5dbb50b31ed6106b5c81328 upstream.

If a file is unhashed, then we're going to reject it anyway and retry,
so make sure we skip it when we're doing the RCU lockless lookup.
This avoids a number of unnecessary nfserr_jukebox returns from
nfsd_file_acquire()

Fixes: 65294c1f2c5e ("nfsd: add a new struct file caching facility to nfsd")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-24 11:26:38 +01:00
..
2019-09-23 16:24:08 -04:00
2019-07-08 23:16:11 -04:00
2020-07-09 09:37:53 +02:00
2018-02-08 15:18:32 -08:00
2020-10-01 13:17:31 +02:00
2019-09-23 16:24:08 -04:00
2018-09-25 20:34:54 -04:00