فهرست منبع

SUNRPC: Ensure call_status() deals correctly with SOFTCONN tasks

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Trond Myklebust 11 سال پیش
والد
کامیت
9455e3f43b
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      net/sunrpc/clnt.c

+ 4 - 0
net/sunrpc/clnt.c

@@ -2004,6 +2004,10 @@ call_status(struct rpc_task *task)
 	case -EHOSTDOWN:
 	case -EHOSTDOWN:
 	case -EHOSTUNREACH:
 	case -EHOSTUNREACH:
 	case -ENETUNREACH:
 	case -ENETUNREACH:
+		if (RPC_IS_SOFTCONN(task)) {
+			rpc_exit(task, status);
+			break;
+		}
 		/*
 		/*
 		 * Delay any retries for 3 seconds, then handle as if it
 		 * Delay any retries for 3 seconds, then handle as if it
 		 * were a timeout.
 		 * were a timeout.