]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sunrpc: track the max number of requested threads in a pool
authorJeff Layton <jlayton@kernel.org>
Tue, 6 Jan 2026 18:59:45 +0000 (13:59 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 28 Jan 2026 15:15:42 +0000 (10:15 -0500)
commit6cd60f4274b19327ebc5afa0c814b13379c34370
treecfdd3d46194ddbcff782b475b4ebc895865565d7
parent2c01f0cf324bd7857c135fb26619dfba67b997a4
sunrpc: track the max number of requested threads in a pool

The kernel currently tracks the number of threads running in a pool in
the "sp_nrthreads" field. In the future, where threads are dynamically
spun up and down, it'll be necessary to keep track of the maximum number
of requested threads separately from the actual number running.

Add a pool->sp_nrthrmax parameter to track this. When userland changes
the number of threads in a pool, update that value accordingly.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc.h
net/sunrpc/svc.c