projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe0344
)
SUNRPC: Fix a missing "break" option in xs_tcp_setup_socket()
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 17 Jun 2009 20:22:57 +0000
(13:22 -0700)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 17 Jun 2009 20:22:57 +0000
(13:22 -0700)
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>
net/sunrpc/xprtsock.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtsock.c
b/net/sunrpc/xprtsock.c
index 6c2d61586551511ff303760923bf6a887e0ae7b1..f7f3dfd211ea7ac64f2901c9dc8df14b3859f41a 100644
(file)
--- 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: