summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-11-24 18:00:24 +0100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-11-29 20:02:01 +0100
commit4ba161a793d5f43757c35feff258d9f20a082940 (patch)
tree24187b4b80e5c564c2fd8a56b448d3dc6a45c356 /net/sunrpc/xprtsock.c
parentNFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid" (diff)
downloadlinux-4ba161a793d5f43757c35feff258d9f20a082940.tar.xz
linux-4ba161a793d5f43757c35feff258d9f20a082940.zip
SUNRPC: Allow connect to return EHOSTUNREACH
Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Tested-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 684e356b40e4..c2b2d489b57b 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -2440,6 +2440,7 @@ static void xs_tcp_setup_socket(struct work_struct *work)
case -ECONNREFUSED:
case -ECONNRESET:
case -ENETUNREACH:
+ case -EHOSTUNREACH:
case -EADDRINUSE:
case -ENOBUFS:
/*