]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: allow passing in array of thread counts via netlink
authorJeff Layton <jlayton@kernel.org>
Thu, 13 Jun 2024 18:34:32 +0000 (14:34 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 8 Jul 2024 18:10:05 +0000 (14:10 -0400)
commit7f5c330b2620aaee668b206b8876300745c98221
treeafd0d2a95dc22198d309c086c33b323af604ca4c
parentb4d8f228915f98f09974ef84ec028cbfe7a84273
nfsd: allow passing in array of thread counts via netlink

Now that nfsd_svc can handle an array of thread counts, fix up the
netlink threads interface to construct one from the netlink call
and pass it through so we can start a pooled server the same way we
would start a normal one.

Note that any unspecified values in the array are considered zeroes,
so it's possible to shut down a pooled server by passing in a short
array that has only zeros, or even an empty array.

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