aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-12-12 08:47:07 +1100
committerChuck Lever <chuck.lever@oracle.com>2025-01-06 09:37:38 -0500
commit60aa6564317db29ea72b6db821b5bbb45f1e879d (patch)
treed0ca7e4c63702dcd48d300536644f356f2936247 /scripts/generate_rust_analyzer.py
parentnfsd: add session slot count to /proc/fs/nfsd/clients/*/info (diff)
downloadwireguard-linux-60aa6564317db29ea72b6db821b5bbb45f1e879d.tar.xz
wireguard-linux-60aa6564317db29ea72b6db821b5bbb45f1e879d.zip
nfsd: allocate new session-based DRC slots on demand.
If a client ever uses the highest available slot for a given session, attempt to allocate more slots so there is room for the client to use them if wanted. GFP_NOWAIT is used so if there is not plenty of free memory, failure is expected - which is what we want. It also allows the allocation while holding a spinlock. Each time we increase the number of slots by 20% (rounded up). This allows fairly quick growth while avoiding excessive over-shoot. We would expect to stablise with around 10% more slots available than the client actually uses. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions