aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-06-08 11:52:12 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 16:00:10 -0400
commita80d66c9e0d1ac31fa3427340efa0bf79b338023 (patch)
tree5bbc519d44749c913bc2fe1ec61545dac31c37c1
parent451d26e151f0792601d10378a608c52304b6a357 (diff)
xprtrdma: Rename rpcrdma_req::rl_free
Clean up: I'm about to use the rl_free field for purposes other than a free list. So use a more generic name. This is a refactoring change only. BugLink: https://bugzilla.linux-nfs.org/show_bug.cgi?id=305 Fixes: 68791649a725 ('xprtrdma: Invalidate in the RPC reply ... ') Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r--net/sunrpc/xprtrdma/verbs.c9
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h2
2 files changed, 5 insertions, 6 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
index a8be66d806dc..df72224604d2 100644
--- a/net/sunrpc/xprtrdma/verbs.c
+++ b/net/sunrpc/xprtrdma/verbs.c
@@ -971,7 +971,6 @@ rpcrdma_create_req(struct rpcrdma_xprt *r_xprt)
971 if (req == NULL) 971 if (req == NULL)
972 return ERR_PTR(-ENOMEM); 972 return ERR_PTR(-ENOMEM);
973 973
974 INIT_LIST_HEAD(&req->rl_free);
975 spin_lock(&buffer->rb_reqslock); 974 spin_lock(&buffer->rb_reqslock);
976 list_add(&req->rl_all, &buffer->rb_allreqs); 975 list_add(&req->rl_all, &buffer->rb_allreqs);
977 spin_unlock(&buffer->rb_reqslock); 976 spin_unlock(&buffer->rb_reqslock);
@@ -1055,7 +1054,7 @@ rpcrdma_buffer_create(struct rpcrdma_xprt *r_xprt)
1055 goto out; 1054 goto out;
1056 } 1055 }
1057 req->rl_backchannel = false; 1056 req->rl_backchannel = false;
1058 list_add(&req->rl_free, &buf->rb_send_bufs); 1057 list_add(&req->rl_list, &buf->rb_send_bufs);
1059 } 1058 }
1060 1059
1061 INIT_LIST_HEAD(&buf->rb_recv_bufs); 1060 INIT_LIST_HEAD(&buf->rb_recv_bufs);
@@ -1084,8 +1083,8 @@ rpcrdma_buffer_get_req_locked(struct rpcrdma_buffer *buf)
1084 struct rpcrdma_req *req; 1083 struct rpcrdma_req *req;
1085 1084
1086 req = list_first_entry(&buf->rb_send_bufs, 1085 req = list_first_entry(&buf->rb_send_bufs,
1087 struct rpcrdma_req, rl_free); 1086 struct rpcrdma_req, rl_list);
1088 list_del(&req->rl_free); 1087 list_del(&req->rl_list);
1089 return req; 1088 return req;
1090} 1089}
1091 1090
@@ -1268,7 +1267,7 @@ rpcrdma_buffer_put(struct rpcrdma_req *req)
1268 1267
1269 spin_lock(&buffers->rb_lock); 1268 spin_lock(&buffers->rb_lock);
1270 buffers->rb_send_count--; 1269 buffers->rb_send_count--;
1271 list_add_tail(&req->rl_free, &buffers->rb_send_bufs); 1270 list_add_tail(&req->rl_list, &buffers->rb_send_bufs);
1272 if (rep) { 1271 if (rep) {
1273 buffers->rb_recv_count--; 1272 buffers->rb_recv_count--;
1274 list_add_tail(&rep->rr_list, &buffers->rb_recv_bufs); 1273 list_add_tail(&rep->rr_list, &buffers->rb_recv_bufs);
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index 1c23117bf1b0..ad918c840fc7 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -340,7 +340,7 @@ enum {
340 340
341struct rpcrdma_buffer; 341struct rpcrdma_buffer;
342struct rpcrdma_req { 342struct rpcrdma_req {
343 struct list_head rl_free; 343 struct list_head rl_list;
344 unsigned int rl_mapped_sges; 344 unsigned int rl_mapped_sges;
345 unsigned int rl_connect_cookie; 345 unsigned int rl_connect_cookie;
346 struct rpcrdma_buffer *rl_buffer; 346 struct rpcrdma_buffer *rl_buffer;