]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: fix filecache lookup
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:18:03 +0000 (13:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:35:32 +0000 (04:35 -0800)
commit6282102dbcbf26e20670ce932917ddcafe266e71
tree19ebf89d95768e48f1f723835310cb3e126b5864
parent4544a6912416ca50eabe1efab01f3e25e94636d9
nfsd: fix filecache lookup

commit 28c7d86bb6172ffbb1a1237c6388e77f9fe5f181 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/filecache.c