diff options
author | Chuck Lever <cel@netapp.com> | 2006-01-03 03:55:50 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-06 14:58:56 -0500 |
commit | 35f5a422ce1af836007f811b613c440d0e348e06 (patch) | |
tree | 25aac5cccce27a6ed5ebb4e161f813af2adbaf56 /include/linux/sunrpc | |
parent | 02107148349f31eee7c0fb06fd7a880df73dbd20 (diff) |
SUNRPC: new interface to force an RPC rebind
We'd like to hide fields in rpc_xprt and rpc_clnt from upper layer protocols.
Start by creating an API to force RPC rebind, replacing logic that simply
sets cl_port to zero.
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 <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index b0ab959eca65..3d605765f84b 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -135,6 +135,7 @@ void rpc_clnt_sigmask(struct rpc_clnt *clnt, sigset_t *oldset); | |||
135 | void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset); | 135 | void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset); |
136 | void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int); | 136 | void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int); |
137 | size_t rpc_max_payload(struct rpc_clnt *); | 137 | size_t rpc_max_payload(struct rpc_clnt *); |
138 | void rpc_force_rebind(struct rpc_clnt *); | ||
138 | int rpc_ping(struct rpc_clnt *clnt, int flags); | 139 | int rpc_ping(struct rpc_clnt *clnt, int flags); |
139 | 140 | ||
140 | static __inline__ | 141 | static __inline__ |