sunrpc: don't take ->sv_lock when updating ->sv_nrthreads.
authorNeilBrown <neilb@suse.de>
Mon, 15 Jul 2024 07:14:19 +0000 (17:14 +1000)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commit9dcbc4e07087f750010c32b1c56fe1af8792a0ca
treefa916a94140c165614682537eec177aa35a02e6e
parent60749cbe3d8ae572a6c7dda675de3e8b25797a18
sunrpc: don't take ->sv_lock when updating ->sv_nrthreads.

As documented in svc_xprt.c, sv_nrthreads is protected by the service
mutex, and it does not need ->sv_lock.
(->sv_lock is needed only for sv_permsocks, sv_tempsocks, and
sv_tmpcnt).

So remove the unnecessary locking.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svc.c