aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-08-19 18:47:57 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-08-21 11:40:00 -0400
commit4d6b8890ddb16120c5dd25edc8d215cfd8222b63 (patch)
treee98cf05460a6cf46f64cc51cfbb174a82d4bd933 /net/sunrpc/xprtrdma/xprt_rdma.h
parentxprtrdma: Cache free MRs in each rpcrdma_req (diff)
downloadlinux-dev-4d6b8890ddb16120c5dd25edc8d215cfd8222b63.tar.xz
linux-dev-4d6b8890ddb16120c5dd25edc8d215cfd8222b63.zip
xprtrdma: Remove rpcrdma_buffer::rb_mrlock
Clean up: Now that the free list is used sparingly, get rid of the separate spin lock protecting it. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to '')
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index c375b0e434ac..200d075bbe31 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -360,19 +360,18 @@ rpcrdma_mr_pop(struct list_head *list)
* One of these is associated with a transport instance
*/
struct rpcrdma_buffer {
- spinlock_t rb_mrlock; /* protect rb_mrs list */
+ spinlock_t rb_lock;
+ struct list_head rb_send_bufs;
+ struct list_head rb_recv_bufs;
struct list_head rb_mrs;
- struct list_head rb_all_mrs;
unsigned long rb_sc_head;
unsigned long rb_sc_tail;
unsigned long rb_sc_last;
struct rpcrdma_sendctx **rb_sc_ctxs;
- spinlock_t rb_lock; /* protect buf lists */
- struct list_head rb_send_bufs;
- struct list_head rb_recv_bufs;
struct list_head rb_allreqs;
+ struct list_head rb_all_mrs;
u32 rb_max_requests;
u32 rb_credits; /* most recent credit grant */