NFSD: move nfsd_mutex handling into nfsd_svc callers
authorJeff Layton <jlayton@kernel.org>
Tue, 23 Apr 2024 13:25:38 +0000 (15:25 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 6 May 2024 13:07:20 +0000 (09:07 -0400)
commit0842b4c80bc7162a803b1558dc6d887e0e8feb39
treec854e94073e0cf84d0e11743b374f4ba3f2308b9
parent03b0036f452d244b6bfeab3973e9e57e8eac9c04
NFSD: move nfsd_mutex handling into nfsd_svc callers

Currently nfsd_svc holds the nfsd_mutex over the whole function. For
some of the later netlink patches though, we want to do some other
things to the server before starting it. Move the mutex handling into
the callers.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c