]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xprtrdma: Simplify locking that protects the rl_allreqs list
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Dec 2018 15:59:33 +0000 (10:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:18 +0000 (12:05 -0500)
commit92f4433e567a034d87e1e2c9e5402ff5f58b545b
tree8ca69ff854e2ab207d652132ad63c0e9403f8be6
parent236b0943d1f21335a0fc4324f3bcc455cf99dfb7
xprtrdma: Simplify locking that protects the rl_allreqs list

Clean up: There's little chance of contention between the use of
rb_lock and rb_reqslock, so merge the two. This avoids having to
take both in some (possibly future) cases.

Transport tear-down is already serialized, thus there is no need for
locking at all when destroying rpcrdma_reqs.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h