diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-11-06 18:44:20 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:27 -0500 |
commit | 62da3b24880bccd4ffc32cf8d9a7e23fab475bdd (patch) | |
tree | 334804c6eb817bd7827f58dbe86ced455160052d /net/sunrpc/xprtrdma | |
parent | 3ebb067d92ebe5bcfd282acf12bade891d334d07 (diff) |
SUNRPC: Rename xprt_disconnect()
xprt_disconnect() should really only be called when the transport shutdown
is completed, and it is time to wake up any pending tasks. Rename it to
xprt_disconnect_done() in order to reflect the semantical change.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma')
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 6f2112dd9f78..73033d824eed 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c | |||
@@ -449,7 +449,7 @@ xprt_rdma_close(struct rpc_xprt *xprt) | |||
449 | struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt); | 449 | struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt); |
450 | 450 | ||
451 | dprintk("RPC: %s: closing\n", __func__); | 451 | dprintk("RPC: %s: closing\n", __func__); |
452 | xprt_disconnect(xprt); | 452 | xprt_disconnect_done(xprt); |
453 | (void) rpcrdma_ep_disconnect(&r_xprt->rx_ep, &r_xprt->rx_ia); | 453 | (void) rpcrdma_ep_disconnect(&r_xprt->rx_ep, &r_xprt->rx_ia); |
454 | } | 454 | } |
455 | 455 | ||
@@ -682,7 +682,7 @@ xprt_rdma_send_request(struct rpc_task *task) | |||
682 | } | 682 | } |
683 | 683 | ||
684 | if (rpcrdma_ep_post(&r_xprt->rx_ia, &r_xprt->rx_ep, req)) { | 684 | if (rpcrdma_ep_post(&r_xprt->rx_ia, &r_xprt->rx_ep, req)) { |
685 | xprt_disconnect(xprt); | 685 | xprt_disconnect_done(xprt); |
686 | return -ENOTCONN; /* implies disconnect */ | 686 | return -ENOTCONN; /* implies disconnect */ |
687 | } | 687 | } |
688 | 688 | ||