From ccac5cb6a487f4b450b549f7ab04b5c913ddd172 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 11 Sep 2007 18:00:36 -0400 Subject: [PATCH] --- yaml --- r: 69209 b: refs/heads/master c: 4784cb51a3f66d401f8a08810231aa7dc8f44e43 h: refs/heads/master i: 69207: cc7f34b2c674f1648b287da8166e96c571baf45a v: v3 --- [refs] | 2 +- trunk/net/sunrpc/rpcb_clnt.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 04df59bbd6e5..601c5c785236 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e65fe3976f594603ed7b1b4a99d3e9b867f573ea +refs/heads/master: 4784cb51a3f66d401f8a08810231aa7dc8f44e43 diff --git a/trunk/net/sunrpc/rpcb_clnt.c b/trunk/net/sunrpc/rpcb_clnt.c index 34738c5cf312..a0c9f6905517 100644 --- a/trunk/net/sunrpc/rpcb_clnt.c +++ b/trunk/net/sunrpc/rpcb_clnt.c @@ -446,6 +446,10 @@ static void rpcb_getport_done(struct rpc_task *child, void *data) struct rpc_xprt *xprt = map->r_xprt; int status = child->tk_status; + /* Garbage reply: retry with a lesser rpcbind version */ + if (status == -EIO) + status = -EPROTONOSUPPORT; + /* rpcbind server doesn't support this rpcbind protocol version */ if (status == -EPROTONOSUPPORT) xprt->bind_index++;