SUNRPC: discard sp_lock
authorNeilBrown <neilb@suse.de>
Mon, 11 Sep 2023 14:40:15 +0000 (10:40 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:08 +0000 (12:44 -0400)
commit580a25756a9f639180b29a508f3bdd24c50a936a
tree55a6e75cb7ff99a56b0d1911484fc8d81c8bfa74
parent2e8fc923fe476db8cab9b6458027eccb22f3b6e6
SUNRPC: discard sp_lock

sp_lock is now only used to protect sp_all_threads.  This isn't needed
as sp_all_threads is only manipulated through svc_set_num_threads(),
which is already serialized.  Read-acccess only requires rcu_read_lock().
So no more locking is needed.

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