diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2016-11-04 18:04:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-09 18:47:49 +0100 |
commit | 117d15bbfde643b5bd0a173fddaa0e6c65f14d47 (patch) | |
tree | f090751bc2a2e11ca793b2edcd14d76f1401a6f3 /net/rds | |
parent | RDS: TCP: report addr/port info based on TCP socket in rds-info (diff) | |
download | linux-117d15bbfde643b5bd0a173fddaa0e6c65f14d47.tar.xz linux-117d15bbfde643b5bd0a173fddaa0e6c65f14d47.zip |
RDS: TCP: start multipath acceptor loop at 0
The for() loop in rds_tcp_accept_one() assumes that the 0'th
rds_tcp_conn_path is UP and starts multipath accepts at index 1.
But this assumption may not always be true: if the 0'th path
has failed (ERROR or DOWN state) an incoming connection request
should be used to resurrect this path.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/tcp_listen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c index e0b23fb5b8d5..c9c496844cd7 100644 --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c @@ -103,7 +103,7 @@ struct rds_tcp_connection *rds_tcp_accept_one_path(struct rds_connection *conn) if (!peer_is_smaller) return NULL; - for (i = 1; i < npaths; i++) { + for (i = 0; i < npaths; i++) { struct rds_conn_path *cp = &conn->c_path[i]; if (rds_conn_path_transition(cp, RDS_CONN_DOWN, |