aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2009-06-17 16:22:57 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-06-17 16:22:57 -0400
commit88b5ed73bcd0f21e008b6e303a02c8b7cb1199f4 (patch)
treeefe474f18f8c175b3bfc04f31e8723ed376cc804 /net
parent3fe0344faf7fdcb158bd5c1a9aec960a8d70c8e8 (diff)
SUNRPC: Fix a missing "break" option in xs_tcp_setup_socket()
In the case of -EADDRNOTAVAIL and/or unhandled connection errors, we want to get rid of the existing socket and retry immediately, just as the comment says. Currently we end up sleeping for a minute, due to the missing "break" statement. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-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 6c2d61586551..f7f3dfd211ea 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1792,6 +1792,7 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt,
1792 */ 1792 */
1793 set_bit(XPRT_CONNECTION_CLOSE, &xprt->state); 1793 set_bit(XPRT_CONNECTION_CLOSE, &xprt->state);
1794 xprt_force_disconnect(xprt); 1794 xprt_force_disconnect(xprt);
1795 break;
1795 case -ECONNREFUSED: 1796 case -ECONNREFUSED:
1796 case -ECONNRESET: 1797 case -ECONNRESET:
1797 case -ENETUNREACH: 1798 case -ENETUNREACH: