diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-08-22 20:06:16 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:44 -0400 |
commit | bbf7c1dd2ae2b4040b41b1065ee9b1b6905b1605 (patch) | |
tree | b1867e722c1cc679b1834feeeeb21195f57dc873 /net/sunrpc/pmap_clnt.c | |
parent | 5b1eacbcd78930d976eb50a93f1779d311b553d1 (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/pmap_clnt.c')
-rw-r--r-- | net/sunrpc/pmap_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/pmap_clnt.c b/net/sunrpc/pmap_clnt.c index 0efcbf1302a2..f7b279a63baa 100644 --- a/net/sunrpc/pmap_clnt.c +++ b/net/sunrpc/pmap_clnt.c | |||
@@ -81,13 +81,13 @@ static inline void pmap_wake_portmap_waiters(struct rpc_xprt *xprt) | |||
81 | /** | 81 | /** |
82 | * rpc_getport - obtain the port for a given RPC service on a given host | 82 | * rpc_getport - obtain the port for a given RPC service on a given host |
83 | * @task: task that is waiting for portmapper request | 83 | * @task: task that is waiting for portmapper request |
84 | * @clnt: controlling rpc_clnt | ||
85 | * | 84 | * |
86 | * This one can be called for an ongoing RPC request, and can be used in | 85 | * This one can be called for an ongoing RPC request, and can be used in |
87 | * an async (rpciod) context. | 86 | * an async (rpciod) context. |
88 | */ | 87 | */ |
89 | void rpc_getport(struct rpc_task *task, struct rpc_clnt *clnt) | 88 | void rpc_getport(struct rpc_task *task) |
90 | { | 89 | { |
90 | struct rpc_clnt *clnt = task->tk_client; | ||
91 | struct rpc_xprt *xprt = task->tk_xprt; | 91 | struct rpc_xprt *xprt = task->tk_xprt; |
92 | struct sockaddr_in *sap = &xprt->addr; | 92 | struct sockaddr_in *sap = &xprt->addr; |
93 | struct portmap_args *map; | 93 | struct portmap_args *map; |