From 9937b1bfef104678aea1a0eed873d4e3171efc3d Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Wed, 30 Aug 2006 14:32:49 -0400 Subject: [PATCH] --- yaml --- r: 34804 b: refs/heads/master c: 76303992b4701124f4cd0791ae2049ab4332f02c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sunrpc/clnt.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3a2f1caca1ae..feb370b94292 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8014793b1b2869445adfe678d64cdacd10e99d53 +refs/heads/master: 76303992b4701124f4cd0791ae2049ab4332f02c diff --git a/trunk/net/sunrpc/clnt.c b/trunk/net/sunrpc/clnt.c index 87efcd207f23..355e7863c0aa 100644 --- a/trunk/net/sunrpc/clnt.c +++ b/trunk/net/sunrpc/clnt.c @@ -1030,6 +1030,14 @@ call_status(struct rpc_task *task) task->tk_status = 0; switch(status) { + case -EHOSTDOWN: + case -EHOSTUNREACH: + case -ENETUNREACH: + /* + * Delay any retries for 3 seconds, then handle as if it + * were a timeout. + */ + rpc_delay(task, 3*HZ); case -ETIMEDOUT: task->tk_action = call_timeout; break;