]> git.baikalelectronics.ru Git - kernel.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)
commit631280c05236a1f5fd37666ca28c5ba04c2593c1
tree8ca69ff854e2ab207d652132ad63c0e9403f8be6
parent6629571eea5ec02d3a09bc7574a1519389829e6d
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