SUNRPC: use lwq for sp_sockets - renamed to sp_xprts
authorNeilBrown <neilb@suse.de>
Mon, 11 Sep 2023 14:40:02 +0000 (10:40 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:07 +0000 (12:44 -0400)
commit9a0e6accc0a8c3adf72f1b43be8019961b68663a
tree2e3a735eaa0a870dfde51f0c6d2d8b98501196db
parent5b80147e0c70181654e8e54eae99f69b2bf891b1
SUNRPC: use lwq for sp_sockets - renamed to sp_xprts

lwq avoids using back pointers in lists, and uses less locking.
This introduces a new spinlock, but the other one will be removed in a
future patch.

For svc_clean_up_xprts(), we now dequeue the entire queue, walk it to
remove and process the xprts that need cleaning up, then re-enqueue the
remaining queue.

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