Files
android_kernel_xiaomi_sm8450/fs/nfsd
Chuck Lever 1ea9b51f73 NFSD: Replace the "init once" mechanism
[ Upstream commit c7b824c3d06c85e054caf86e227255112c5e3c38 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-21 14:53:50 +02:00
..
2024-06-21 14:52:56 +02:00
2024-06-21 14:52:56 +02:00
2024-06-21 14:53:50 +02:00
2024-06-21 14:53:25 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:25 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:34 +02:00
2024-06-21 14:53:43 +02:00
2024-06-21 14:53:36 +02:00
2024-06-21 14:53:25 +02:00
2024-06-21 14:53:47 +02:00
2024-06-21 14:53:49 +02:00
2024-06-21 14:53:46 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:29 +02:00
2024-06-21 14:53:29 +02:00
2024-06-21 14:53:43 +02:00
2024-06-21 14:53:43 +02:00
2018-09-25 20:34:54 -04:00