Chuck Lever 4d1ea84557 NFSD: Add an NFSD_FILE_GC flag to enable nfsd_file garbage collection
NFSv4 operations manage the lifetime of nfsd_file items they use by
means of NFSv4 OPEN and CLOSE. Hence there's no need for them to be
garbage collected.

Introduce a mechanism to enable garbage collection for nfsd_file
items used only by NFSv2/3 callers.

Note that the change in nfsd_file_put() ensures that both CLOSE and
DELEGRETURN will actually close out and free an nfsd_file on last
reference of a non-garbage-collected file.

Link: https://bugzilla.linux-nfs.org/show_bug.cgi?id=394
Suggested-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
2022-11-28 12:54:45 -05:00
..
2022-11-28 12:54:44 -05:00
2021-12-03 18:44:06 +01:00
2022-11-28 12:54:44 -05:00
2021-10-02 15:51:10 -04:00
2022-09-26 14:02:47 -04:00
2022-11-28 12:54:44 -05:00
2022-10-06 17:13:18 -07:00
2022-11-28 12:54:43 -05:00
2022-11-28 12:54:44 -05:00
2022-09-26 14:02:47 -04:00
2021-12-13 13:42:51 -05:00
2022-09-26 14:02:49 -04:00
2018-09-25 20:34:54 -04:00