aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2006-08-22 20:06:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:44 -0400
commitbbf7c1dd2ae2b4040b41b1065ee9b1b6905b1605 (patch)
treeb1867e722c1cc679b1834feeeeb21195f57dc873 /net/sunrpc/clnt.c
parent5b1eacbcd78930d976eb50a93f1779d311b553d1 (diff)
SUNRPC: Introduce transport switch callout for pluggable rpcbind
Introduce a clean transport switch API for plugging in different types of rpcbind mechanisms. For instance, rpcbind can cleanly replace the existing portmapper client, or a transport can choose to implement RPC binding any way it likes. Test plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. NFSv2/3 and NFSv4 mounting should be carefully checked. Probably need to rig a server where certain services aren't running, or that returns an error for some typical operation. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index cee504162a3f..d003c2f5688f 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -774,7 +774,6 @@ call_encode(struct rpc_task *task)
774static void 774static void
775call_bind(struct rpc_task *task) 775call_bind(struct rpc_task *task)
776{ 776{
777 struct rpc_clnt *clnt = task->tk_client;
778 struct rpc_xprt *xprt = task->tk_xprt; 777 struct rpc_xprt *xprt = task->tk_xprt;
779 778
780 dprintk("RPC: %4d call_bind (status %d)\n", 779 dprintk("RPC: %4d call_bind (status %d)\n",
@@ -784,7 +783,7 @@ call_bind(struct rpc_task *task)
784 if (!xprt_bound(xprt)) { 783 if (!xprt_bound(xprt)) {
785 task->tk_action = call_bind_status; 784 task->tk_action = call_bind_status;
786 task->tk_timeout = xprt->bind_timeout; 785 task->tk_timeout = xprt->bind_timeout;
787 rpc_getport(task, clnt); 786 xprt->ops->rpcbind(task);
788 } 787 }
789} 788}
790 789