summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust2014-07-03 06:02:57 +0200
committerTrond Myklebust2014-07-03 06:11:35 +0200
commit2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5 (patch)
treea500d506982686c8cf3c173aa30ec2f36752df5b /net/sunrpc/clnt.c
parentSUNRPC: Ensure that we handle ENOBUFS errors correctly. (diff)
downloadkernel-qcow2-linux-2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5.tar.gz
kernel-qcow2-linux-2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5.tar.xz
kernel-qcow2-linux-2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5.zip
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/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c1
1 files changed, 1 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)
case -ENETUNREACH:
case -EHOSTUNREACH:
case -ENOBUFS:
+ case -EPIPE:
if (RPC_IS_SOFTCONN(task))
break;
/* retry with existing socket, after a delay */