]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc77dea2ef5f8330965f0586fbdf7033461893099
tree166f6aabe26e70a841624f5307879a906a88e1c2
parent4f7654a9bfeb0995316a25db6f4381ed01745166
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