]> git.baikalelectronics.ru Git - kernel.git/commit
rds: tcp: set linger to 1 when unloading a rds-tcp
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 21 Jun 2017 20:40:13 +0000 (13:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:34:04 +0000 (11:34 -0400)
commiteb53739034df3a54de3730dda973ab7131ff4d84
tree25b75d4ca8004759f2da15b26f2cc5700e51becf
parenta64043ed95e3fbfd0b8cf43db1564dfb56b96659
rds: tcp: set linger to 1 when unloading a rds-tcp

If we are unloading the rds_tcp module, we can set linger to 1
and drop pending packets to accelerate reconnect. The peer will
end up resetting the connection based on new generation numbers
of the new incarnation, so hanging on to unsent TCP packets via
linger is mostly pointless in this case.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Tested-by: Jenny Xu <jenny.x.xu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c
net/rds/rds.h
net/rds/tcp.h
net/rds/tcp_connect.c
net/rds/tcp_listen.c