projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26c32f
)
xprtrdma: Clean up xprt_rdma_disconnect_inject
author
Chuck Lever
<chuck.lever@oracle.com>
Mon, 1 Oct 2018 18:26:45 +0000
(14:26 -0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 3 Oct 2018 18:19:31 +0000
(14:19 -0400)
Clean up: Use the appropriate C macro instead of open-coding
container_of() .
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtrdma/transport.c
b/net/sunrpc/xprtrdma/transport.c
index 39b7991862d0887fffc6318f3974dfe9a4d75718..0cfa7bf4111839314ff66373647c769c219d0151 100644
(file)
--- a/
net/sunrpc/xprtrdma/transport.c
+++ b/
net/sunrpc/xprtrdma/transport.c
@@
-266,8
+266,7
@@
xprt_rdma_connect_worker(struct work_struct *work)
static void
xprt_rdma_inject_disconnect(struct rpc_xprt *xprt)
{
- struct rpcrdma_xprt *r_xprt = container_of(xprt, struct rpcrdma_xprt,
- rx_xprt);
+ struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt);
trace_xprtrdma_inject_dsc(r_xprt);
rdma_disconnect(r_xprt->rx_ia.ri_id);