NFSD: move create/destroy of laundry_wq to init_nfsd and exit_nfsd
authorDai Ngo <dai.ngo@oracle.com>
Mon, 2 May 2022 21:19:23 +0000 (14:19 -0700)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 19 May 2022 16:25:39 +0000 (12:25 -0400)
commitd76cc46b37e123e8d245cc3490978dbda56f979d
tree166f6aabe26e70a841624f5307879a906a88e1c2
parent3d69427151806656abf129342028f3f4e5e1fee0
NFSD: move create/destroy of laundry_wq to init_nfsd and exit_nfsd

This patch moves create/destroy of laundry_wq from nfs4_state_start
and nfs4_state_shutdown_net to init_nfsd and exit_nfsd to prevent
the laundromat from being freed while a thread is processing a
conflicting lock.

Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c
fs/nfsd/nfsctl.c
fs/nfsd/nfsd.h