summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2023-09-11 10:40:22 -0400
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 12:44:08 -0400
commit15d39883ee7dfc023d8a24f5d4b58100e1d04ad9 (patch)
treebb325ff8eba96ca7c4f88f32913697fb4536a0b5 /net/sunrpc/svc.c
parent580a25756a9f639180b29a508f3bdd24c50a936a (diff)
downloadlinux-stable-15d39883ee7dfc023d8a24f5d4b58100e1d04ad9.tar.gz
linux-stable-15d39883ee7dfc023d8a24f5d4b58100e1d04ad9.tar.bz2
linux-stable-15d39883ee7dfc023d8a24f5d4b58100e1d04ad9.zip
SUNRPC: change the back-channel queue to lwq
This removes the need to store and update back-links in the list. It also remove the need for the _bh version of spin_lock(). Signed-off-by: NeilBrown <neilb@suse.de> Cc: Trond Myklebust <trond.myklebust@hammerspace.com> Cc: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index efe7a58ccbdc..7d4c10e609dc 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -438,8 +438,7 @@ EXPORT_SYMBOL_GPL(svc_bind);
static void
__svc_init_bc(struct svc_serv *serv)
{
- INIT_LIST_HEAD(&serv->sv_cb_list);
- spin_lock_init(&serv->sv_cb_lock);
+ lwq_init(&serv->sv_cb_list);
}
#else
static void