From: Trond Myklebust Date: Wed, 17 Jun 2009 20:22:57 +0000 (-0700) Subject: SUNRPC: Fix a missing "break" option in xs_tcp_setup_socket() X-Git-Tag: v2.6.31-rc1~58^2~2^2~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=88b5ed73bcd0f21e008b6e303a02c8b7cb1199f4;p=~shefty%2Frdma-dev.git 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 --- diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 6c2d6158655..f7f3dfd211e 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, */ set_bit(XPRT_CONNECTION_CLOSE, &xprt->state); xprt_force_disconnect(xprt); + break; case -ECONNREFUSED: case -ECONNRESET: case -ENETUNREACH: