]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: use threads array as-is in netlink interface
authorJeff Layton <jlayton@kernel.org>
Wed, 28 May 2025 00:12:47 +0000 (20:12 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 19 Jun 2025 13:35:38 +0000 (09:35 -0400)
commit8ea688a3372e8369dc04395b39b4e71a6d91d4d5
tree818c23755107b552714c25e81c6e464a16b3c26d
parent8b3ac9fabaa825b7bae850ee7b4580c5cba32699
nfsd: use threads array as-is in netlink interface

The old nfsdfs interface for starting a server with multiple pools
handles the special case of a single entry array passed down from
userland by distributing the threads over every NUMA node.

The netlink control interface however constructs an array of length
nfsd_nrpools() and fills any unprovided slots with 0's. This behavior
defeats the special casing that the old interface relies on.

Change nfsd_nl_threads_set_doit() to pass down the array from userland
as-is.

Fixes: 7f5c330b2620 ("nfsd: allow passing in array of thread counts via netlink")
Cc: stable@vger.kernel.org
Reported-by: Mike Snitzer <snitzer@kernel.org>
Closes: https://lore.kernel.org/linux-nfs/aDC-ftnzhJAlwqwh@kernel.org/
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsctl.c