summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2023-09-11 10:40:15 -0400
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 12:44:08 -0400
commit580a25756a9f639180b29a508f3bdd24c50a936a (patch)
tree55a6e75cb7ff99a56b0d1911484fc8d81c8bfa74 /include
parent2e8fc923fe476db8cab9b6458027eccb22f3b6e6 (diff)
downloadlinux-stable-580a25756a9f639180b29a508f3bdd24c50a936a.tar.gz
linux-stable-580a25756a9f639180b29a508f3bdd24c50a936a.tar.bz2
linux-stable-580a25756a9f639180b29a508f3bdd24c50a936a.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/svc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 9d0fcd6148ae..8ce1392c1a35 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -34,7 +34,6 @@
*/
struct svc_pool {
unsigned int sp_id; /* pool id; also node id on NUMA */
- spinlock_t sp_lock; /* protects all fields */
struct lwq sp_xprts; /* pending transports */
atomic_t sp_nrthreads; /* # of threads in pool */
struct list_head sp_all_threads; /* all server threads */