]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: TCP: start multipath acceptor loop at 0
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 4 Nov 2016 17:04:12 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 17:47:49 +0000 (12:47 -0500)
commit0492b3c9fed552f703fe334ce87cb5eab464e558
treef090751bc2a2e11ca793b2edcd14d76f1401a6f3
parent7013dba2e98c51bec17962c177a1c93ea01d091a
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>
net/rds/tcp_listen.c