Commit ad091180 authored by Chuck Lever's avatar Chuck Lever Committed by Anna Schumaker

xprtrdma: Clean up xprt_rdma_disconnect_inject

Clean up: Use the appropriate C macro instead of open-coding
container_of() .
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent f26c32fa
...@@ -266,8 +266,7 @@ xprt_rdma_connect_worker(struct work_struct *work) ...@@ -266,8 +266,7 @@ xprt_rdma_connect_worker(struct work_struct *work)
static void static void
xprt_rdma_inject_disconnect(struct rpc_xprt *xprt) xprt_rdma_inject_disconnect(struct rpc_xprt *xprt)
{ {
struct rpcrdma_xprt *r_xprt = container_of(xprt, struct rpcrdma_xprt, struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt);
rx_xprt);
trace_xprtrdma_inject_dsc(r_xprt); trace_xprtrdma_inject_dsc(r_xprt);
rdma_disconnect(r_xprt->rx_ia.ri_id); rdma_disconnect(r_xprt->rx_ia.ri_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment