]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: Handle EPIPE in xprt_connect_status
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 3 Jul 2014 04:02:57 +0000 (00:02 -0400)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 14:12:14 +0000 (15:12 +0100)
commit0deb7f8cc68902c58b1c735d933f69994709d7e6
treee2400813dda9b007b6802ed4f359e5979ce3cd38
parent27219fc0724390534b5c462fa14b9dc353334410
SUNRPC: Handle EPIPE in xprt_connect_status

commit 2fc193cf924ea6eb74f6a0cf73b94b2e62938ae5 upstream.

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>
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/sunrpc/clnt.c
net/sunrpc/xprt.c