]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: make nfsd_svc take an array of thread counts
authorJeff Layton <jlayton@kernel.org>
Thu, 13 Jun 2024 18:34:31 +0000 (14:34 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 8 Jul 2024 18:10:04 +0000 (14:10 -0400)
commitb4d8f228915f98f09974ef84ec028cbfe7a84273
tree0dc1a98562a8d44fcac340980b55277fb9dfba8d
parent8e0c8d23952f338180d19718195d4f9fd10a1809
nfsd: make nfsd_svc take an array of thread counts

Now that the refcounting is fixed, rework nfsd_svc to use the same
thread setup as the pool_threads interface. Have it take an array of
thread counts instead of just a single value, and pass that from the
netlink threads set interface.  Since the new netlink interface doesn't
have the same restriction as pool_threads, move the guard against
shutting down all threads to write_pool_threads.

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