OSDN Git Service

nfsd: fix filecache lookup
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:18:03 +0000 (13:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Jan 2020 21:25:01 +0000 (16:25 -0500)
commit28c7d86bb6172ffbb1a1237c6388e77f9fe5f181
tree4e5ed40f9b2f92472307deb058a7a00f2ba78de7
parente44b4bf2648ef05ff1cde9f354079bce58a5ebde
nfsd: fix filecache lookup

If the lookup keeps finding a nfsd_file with an unhashed open file,
then retry once only.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org
Fixes: 65294c1f2c5e "nfsd: add a new struct file caching facility to nfsd"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c