From: Trond Myklebust Date: Tue, 31 Dec 2013 18:13:30 +0000 (-0500) Subject: SUNRPC: Ensure xprt_connect_status handles all potential connection errors X-Git-Tag: v3.14-rc1~15^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fe8d04e8c3a1eb49089793e38b60a17cee564e3;p=profile%2Fcommon%2Fkernel-common.git SUNRPC: Ensure xprt_connect_status handles all potential connection errors Currently, xprt_connect_status will convert connection error values such as ECONNREFUSED, ECONNRESET, ... into EIO, which means that they never get handled. Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 04199bc..ddd198e 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -749,6 +749,11 @@ static void xprt_connect_status(struct rpc_task *task) } switch (task->tk_status) { + case -ECONNREFUSED: + case -ECONNRESET: + case -ECONNABORTED: + case -ENETUNREACH: + case -EHOSTUNREACH: case -EAGAIN: dprintk("RPC: %5u xprt_connect_status: retrying\n", task->tk_pid); break;