aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-03-29 16:48:33 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-05-01 01:17:16 -0400
commit00a6e7bbf990e3a5e59a9a1e6a68e99c94fe001c (patch)
treefb0427a8b08702c99bf5eba9c6d5bb16ea4ee2bc /net/sunrpc
parent4c2eaf073f0cc2b5bf593b8133c078b9d9406e95 (diff)
SUNRPC: RPC client should retry with different versions of rpcbind
Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e7dc09ecc470..d8fbee40a19c 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -902,9 +902,11 @@ call_bind_status(struct rpc_task *task)
902 task->tk_pid); 902 task->tk_pid);
903 break; 903 break;
904 case -EPROTONOSUPPORT: 904 case -EPROTONOSUPPORT:
905 dprintk("RPC: %5u remote rpcbind version 2 unavailable\n", 905 dprintk("RPC: %5u remote rpcbind version unavailable, retrying\n",
906 task->tk_pid); 906 task->tk_pid);
907 break; 907 task->tk_status = 0;
908 task->tk_action = call_bind;
909 return;
908 default: 910 default:
909 dprintk("RPC: %5u unrecognized rpcbind error (%d)\n", 911 dprintk("RPC: %5u unrecognized rpcbind error (%d)\n",
910 task->tk_pid, -task->tk_status); 912 task->tk_pid, -task->tk_status);