]> git.karo-electronics.de Git - linux-beck.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)
commitc82ac7e69efe6dbe370d6ba84e2666d7692ef1c2
tree3202342b6487ecdf0930ba849479f74c163ceb22
parentf711a6ae062caeee46067b2f2f12ffda319ae73c
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