]> git.baikalelectronics.ru Git - kernel.git/commit
net/rds: RDS-TCP: only initiate reconnect attempt on outgoing TCP socket.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Tue, 5 May 2015 19:20:52 +0000 (15:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:03:28 +0000 (16:03 -0400)
commit6e9ebb30248712ff0544c6a3cb96a0d23fa81938
tree3202342b6487ecdf0930ba849479f74c163ceb22
parentadd744536120ae907c97f03c36aacaffb1d672ef
net/rds: RDS-TCP: only initiate reconnect attempt on outgoing TCP socket.

When the peer of an RDS-TCP connection restarts, a reconnect
attempt should only be made from the active side  of the TCP
connection, i.e. the side that has a transient TCP port
number. Do not add the passive side of the TCP connection
to the c_hash_node and thus avoid triggering rds_queue_reconnect()
for passive rds connections.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c