diff options
author | NeilBrown <neilb@suse.de> | 2023-09-11 16:40:22 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-10-16 18:44:08 +0200 |
commit | 15d39883ee7dfc023d8a24f5d4b58100e1d04ad9 (patch) | |
tree | bb325ff8eba96ca7c4f88f32913697fb4536a0b5 /net/sunrpc/svc.c | |
parent | SUNRPC: discard sp_lock (diff) | |
download | linux-15d39883ee7dfc023d8a24f5d4b58100e1d04ad9.tar.xz linux-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.c | 3 |
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 |