]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: use an xarray to store v4.1 session slots
authorNeilBrown <neilb@suse.de>
Wed, 11 Dec 2024 21:47:04 +0000 (08:47 +1100)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 6 Jan 2025 14:37:37 +0000 (09:37 -0500)
commit0b6e14242630ad5f65839b23400bd67c5166e2b4
tree1c6f354b9f6cbf37dc2e61fac08d6e9dc255b1e4
parenta4b853f183a19a88ad635f9ae8ba97e7cb377a23
nfsd: use an xarray to store v4.1 session slots

Using an xarray to store session slots will make it easier to change the
number of active slots based on demand, and removes an unnecessary
limit.

To achieve good throughput with a high-latency server it can be helpful
to have hundreds of concurrent writes, which means hundreds of slots.
So increase the limit to 2048 (twice what the Linux client will
currently use).  This limit is only a sanity check, not a hard limit.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h