diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-01-21 11:03:11 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2015-01-30 10:47:48 -0500 |
commit | afadc468eb309b7c48ffdc8fa4c72acbb9991613 (patch) | |
tree | 72fcefde2d18b8fd3025545143f6adc71c09a3da | |
parent | eba8ff660b2d8b7fcd6669fcab2c025b59f66d26 (diff) |
xprtrdma: Remove rpcrdma_ep::rep_func and ::rep_xprt
Clean up: The rep_func field always refers to rpcrdma_conn_func().
rep_func should have been removed by commit b45ccfd25d50 ("xprtrdma:
Remove MEMWINDOWS registration modes").
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 4 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 2 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 6 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 2 |
4 files changed, 6 insertions, 8 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index d7310109b601..f2eda155299a 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c | |||
@@ -695,7 +695,9 @@ rpcrdma_connect_worker(struct work_struct *work) | |||
695 | { | 695 | { |
696 | struct rpcrdma_ep *ep = | 696 | struct rpcrdma_ep *ep = |
697 | container_of(work, struct rpcrdma_ep, rep_connect_worker.work); | 697 | container_of(work, struct rpcrdma_ep, rep_connect_worker.work); |
698 | struct rpc_xprt *xprt = ep->rep_xprt; | 698 | struct rpcrdma_xprt *r_xprt = |
699 | container_of(ep, struct rpcrdma_xprt, rx_ep); | ||
700 | struct rpc_xprt *xprt = &r_xprt->rx_xprt; | ||
699 | 701 | ||
700 | spin_lock_bh(&xprt->transport_lock); | 702 | spin_lock_bh(&xprt->transport_lock); |
701 | if (++xprt->connect_cookie == 0) /* maintain a reserved value */ | 703 | if (++xprt->connect_cookie == 0) /* maintain a reserved value */ |
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index ee5751326339..a487bde71b4a 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c | |||
@@ -376,8 +376,6 @@ xprt_setup_rdma(struct xprt_create *args) | |||
376 | */ | 376 | */ |
377 | INIT_DELAYED_WORK(&new_xprt->rx_connect_worker, | 377 | INIT_DELAYED_WORK(&new_xprt->rx_connect_worker, |
378 | xprt_rdma_connect_worker); | 378 | xprt_rdma_connect_worker); |
379 | new_ep->rep_func = rpcrdma_conn_func; | ||
380 | new_ep->rep_xprt = xprt; | ||
381 | 379 | ||
382 | xprt_rdma_format_addresses(xprt); | 380 | xprt_rdma_format_addresses(xprt); |
383 | xprt->max_payload = rpcrdma_max_payload(new_xprt); | 381 | xprt->max_payload = rpcrdma_max_payload(new_xprt); |
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index 71a071aaf0ab..c61bb61c4d13 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
@@ -154,7 +154,7 @@ rpcrdma_qp_async_error_upcall(struct ib_event *event, void *context) | |||
154 | event->device->name, context); | 154 | event->device->name, context); |
155 | if (ep->rep_connected == 1) { | 155 | if (ep->rep_connected == 1) { |
156 | ep->rep_connected = -EIO; | 156 | ep->rep_connected = -EIO; |
157 | ep->rep_func(ep); | 157 | rpcrdma_conn_func(ep); |
158 | wake_up_all(&ep->rep_connect_wait); | 158 | wake_up_all(&ep->rep_connect_wait); |
159 | } | 159 | } |
160 | } | 160 | } |
@@ -169,7 +169,7 @@ rpcrdma_cq_async_error_upcall(struct ib_event *event, void *context) | |||
169 | event->device->name, context); | 169 | event->device->name, context); |
170 | if (ep->rep_connected == 1) { | 170 | if (ep->rep_connected == 1) { |
171 | ep->rep_connected = -EIO; | 171 | ep->rep_connected = -EIO; |
172 | ep->rep_func(ep); | 172 | rpcrdma_conn_func(ep); |
173 | wake_up_all(&ep->rep_connect_wait); | 173 | wake_up_all(&ep->rep_connect_wait); |
174 | } | 174 | } |
175 | } | 175 | } |
@@ -474,7 +474,7 @@ connected: | |||
474 | dprintk("RPC: %s: %sconnected\n", | 474 | dprintk("RPC: %s: %sconnected\n", |
475 | __func__, connstate > 0 ? "" : "dis"); | 475 | __func__, connstate > 0 ? "" : "dis"); |
476 | ep->rep_connected = connstate; | 476 | ep->rep_connected = connstate; |
477 | ep->rep_func(ep); | 477 | rpcrdma_conn_func(ep); |
478 | wake_up_all(&ep->rep_connect_wait); | 478 | wake_up_all(&ep->rep_connect_wait); |
479 | /*FALLTHROUGH*/ | 479 | /*FALLTHROUGH*/ |
480 | default: | 480 | default: |
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 3fcc92b0e3ca..657c370e48b9 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h | |||
@@ -87,8 +87,6 @@ struct rpcrdma_ep { | |||
87 | wait_queue_head_t rep_connect_wait; | 87 | wait_queue_head_t rep_connect_wait; |
88 | struct ib_sge rep_pad; /* holds zeroed pad */ | 88 | struct ib_sge rep_pad; /* holds zeroed pad */ |
89 | struct ib_mr *rep_pad_mr; /* holds zeroed pad */ | 89 | struct ib_mr *rep_pad_mr; /* holds zeroed pad */ |
90 | void (*rep_func)(struct rpcrdma_ep *); | ||
91 | struct rpc_xprt *rep_xprt; /* for rep_func */ | ||
92 | struct rdma_conn_param rep_remote_cma; | 90 | struct rdma_conn_param rep_remote_cma; |
93 | struct sockaddr_storage rep_remote_addr; | 91 | struct sockaddr_storage rep_remote_addr; |
94 | struct delayed_work rep_connect_worker; | 92 | struct delayed_work rep_connect_worker; |