Skip to contentSkip to conversation

SUNRPC: Retry bad rpcbind replies

PATCH New Chuck Lever 1 participant 1 message Sep 11, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 7/15 SUNRPC: Retry bad rpcbind replies

When a server returns a bad rpcbind reply, make rpcbind client recovery logic retry with an older protocol version. Older versions are more likely to work correctly.

---

 net/sunrpc/rpcb_clnt.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
net/sunrpc/rpcb_clnt.c +4 -0
index 34738c5..a0c9f69 100644
@@ -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++;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs