diff options
author | Jeff Layton <jlayton@kernel.org> | 2024-06-13 14:34:31 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-07-08 14:10:04 -0400 |
commit | b4d8f228915f98f09974ef84ec028cbfe7a84273 (patch) | |
tree | 0dc1a98562a8d44fcac340980b55277fb9dfba8d /fs/nfsd/nfsd.h | |
parent | 8e0c8d23952f338180d19718195d4f9fd10a1809 (diff) | |
download | lwn-b4d8f228915f98f09974ef84ec028cbfe7a84273.tar.gz lwn-b4d8f228915f98f09974ef84ec028cbfe7a84273.zip |
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>
Diffstat (limited to 'fs/nfsd/nfsd.h')
-rw-r--r-- | fs/nfsd/nfsd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h index 8f4f239d9f8a..cec8697b1cd6 100644 --- a/fs/nfsd/nfsd.h +++ b/fs/nfsd/nfsd.h @@ -103,7 +103,8 @@ bool nfssvc_encode_voidres(struct svc_rqst *rqstp, /* * Function prototypes. */ -int nfsd_svc(int nrservs, struct net *net, const struct cred *cred, const char *scope); +int nfsd_svc(int n, int *nservers, struct net *net, + const struct cred *cred, const char *scope); int nfsd_dispatch(struct svc_rqst *rqstp); int nfsd_nrthreads(struct net *); |