SUNRPC: Handle EPIPE in xprt_connect_status
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 3 Jul 2014 04:02:57 +0000 (00:02 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 3 Jul 2014 04:11:35 +0000 (00:11 -0400)
commit2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5
treea500d506982686c8cf3c173aa30ec2f36752df5b
parent3601c4a91ebbbf1cf69f66a2abeffc6c64a4fe64
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>
net/sunrpc/clnt.c
net/sunrpc/xprt.c