aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 87efcd207f23..355e7863c0aa 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1030,6 +1030,14 @@ call_status(struct rpc_task *task)
1030 1030
1031 task->tk_status = 0; 1031 task->tk_status = 0;
1032 switch(status) { 1032 switch(status) {
1033 case -EHOSTDOWN:
1034 case -EHOSTUNREACH:
1035 case -ENETUNREACH:
1036 /*
1037 * Delay any retries for 3 seconds, then handle as if it
1038 * were a timeout.
1039 */
1040 rpc_delay(task, 3*HZ);
1033 case -ETIMEDOUT: 1041 case -ETIMEDOUT:
1034 task->tk_action = call_timeout; 1042 task->tk_action = call_timeout;
1035 break; 1043 break;