diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-03 00:02:57 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-03 00:11:35 -0400 |
commit | 2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5 (patch) | |
tree | a500d506982686c8cf3c173aa30ec2f36752df5b /net | |
parent | 3601c4a91ebbbf1cf69f66a2abeffc6c64a4fe64 (diff) |
SUNRPC: Handle EPIPE in xprt_connect_status
The callback handler xs_error_report() can end up propagating an EPIPE
error by means of the call to xprt_wake_pending_tasks(). Ensure that
xprt_connect_status() does not automatically convert this into an
EIO error.
Reported-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/clnt.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprt.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 575e63f6c13e..488ddeed9363 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -1814,6 +1814,7 @@ call_connect_status(struct rpc_task *task) | |||
1814 | case -ENETUNREACH: | 1814 | case -ENETUNREACH: |
1815 | case -EHOSTUNREACH: | 1815 | case -EHOSTUNREACH: |
1816 | case -ENOBUFS: | 1816 | case -ENOBUFS: |
1817 | case -EPIPE: | ||
1817 | if (RPC_IS_SOFTCONN(task)) | 1818 | if (RPC_IS_SOFTCONN(task)) |
1818 | break; | 1819 | break; |
1819 | /* retry with existing socket, after a delay */ | 1820 | /* retry with existing socket, after a delay */ |
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index c3b2b3369e52..c5b2916298b0 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -744,6 +744,7 @@ static void xprt_connect_status(struct rpc_task *task) | |||
744 | case -ECONNABORTED: | 744 | case -ECONNABORTED: |
745 | case -ENETUNREACH: | 745 | case -ENETUNREACH: |
746 | case -EHOSTUNREACH: | 746 | case -EHOSTUNREACH: |
747 | case -EPIPE: | ||
747 | case -EAGAIN: | 748 | case -EAGAIN: |
748 | dprintk("RPC: %5u xprt_connect_status: retrying\n", task->tk_pid); | 749 | dprintk("RPC: %5u xprt_connect_status: retrying\n", task->tk_pid); |
749 | break; | 750 | break; |