Home
last modified time | relevance | path

Searched hist:c7b824c3d06c85e054caf86e227255112c5e3c38 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/nfsd/
H A Dfilecache.cdiff c7b824c3d06c85e054caf86e227255112c5e3c38 Fri Jul 08 13:26:16 CDT 2022 Chuck Lever <chuck.lever@oracle.com> NFSD: Replace the "init once" mechanism

In a moment, the nfsd_file_hashtbl global will be replaced with an
rhashtable. Replace the one or two spots that need to check if the
hash table is available. We can easily reuse the SHUTDOWN flag for
this purpose.

Document that this mechanism relies on callers to hold the
nfsd_mutex to prevent init, shutdown, and purging to run
concurrently.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>