On Tue, May 27, 2025 at 08:12:47PM -0400, Jeff Layton wrote:
> 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")
> Reported-by: Mike Snitzer <[email protected]>
> Closes: https://lore.kernel.org/linux-nfs/[email protected]/
> Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Simon Horman <[email protected]>