]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4d601a1c2615cf70c2f3eb467fde68a9d3af12f
tree4e5ed40f9b2f92472307deb058a7a00f2ba78de7
parent7626bda133c5c821793c25e99de5e72a5fe728f9
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: a8d3d8b807d4 "nfsd: add a new struct file caching facility to nfsd"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c