aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-11-06 18:44:20 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:27 -0500
commit62da3b24880bccd4ffc32cf8d9a7e23fab475bdd (patch)
tree334804c6eb817bd7827f58dbe86ced455160052d /net/sunrpc/xprt.c
parent3ebb067d92ebe5bcfd282acf12bade891d334d07 (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/xprt.c')
-rw-r--r--net/sunrpc/xprt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 80742995e02e..592c2ee63e0f 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -574,11 +574,11 @@ static void xprt_autoclose(struct work_struct *work)
574} 574}
575 575
576/** 576/**
577 * xprt_disconnect - mark a transport as disconnected 577 * xprt_disconnect_done - mark a transport as disconnected
578 * @xprt: transport to flag for disconnect 578 * @xprt: transport to flag for disconnect
579 * 579 *
580 */ 580 */
581void xprt_disconnect(struct rpc_xprt *xprt) 581void xprt_disconnect_done(struct rpc_xprt *xprt)
582{ 582{
583 dprintk("RPC: disconnected transport %p\n", xprt); 583 dprintk("RPC: disconnected transport %p\n", xprt);
584 spin_lock_bh(&xprt->transport_lock); 584 spin_lock_bh(&xprt->transport_lock);
@@ -586,7 +586,7 @@ void xprt_disconnect(struct rpc_xprt *xprt)
586 xprt_wake_pending_tasks(xprt, -ENOTCONN); 586 xprt_wake_pending_tasks(xprt, -ENOTCONN);
587 spin_unlock_bh(&xprt->transport_lock); 587 spin_unlock_bh(&xprt->transport_lock);
588} 588}
589EXPORT_SYMBOL_GPL(xprt_disconnect); 589EXPORT_SYMBOL_GPL(xprt_disconnect_done);
590 590
591/** 591/**
592 * xprt_force_disconnect - force a transport to disconnect 592 * xprt_force_disconnect - force a transport to disconnect