]> git.ipfire.org Git - people/ms/linux.git/commit - fs/nfsd/filecache.h
NFSD: NFSv4 CLOSE should release an nfsd_file immediately
authorChuck Lever <chuck.lever@oracle.com>
Fri, 8 Jul 2022 18:27:02 +0000 (14:27 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:16:42 +0000 (20:16 -0400)
commit5e138c4a750dc140d881dab4a8804b094bbc08d2
tree4b89786166f7ac18e87566cd6526cd97e6a0d193
parentb40a2839470cd62ed68c4a32d72a18ee8975b1ac
NFSD: NFSv4 CLOSE should release an nfsd_file immediately

The last close of a file should enable other accessors to open and
use that file immediately. Leaving the file open in the filecache
prevents other users from accessing that file until the filecache
garbage-collects the file -- sometimes that takes several seconds.

Reported-by: Wang Yugui <wangyugui@e16-tech.com>
Link: https://bugzilla.linux-nfs.org/show_bug.cgi?387
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c
fs/nfsd/filecache.h
fs/nfsd/nfs4state.c