]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: tcp: set linger to 1 when unloading a rds-tcp
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 16 Jun 2017 12:45:49 +0000 (05:45 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 26 Jul 2017 03:53:26 +0000 (20:53 -0700)
commit0d47de1c1f24fad6064f5202e64b87a044c4fcb1
treeb0fdc2ba1ae98277e486fa010572500e6fc383da
parenta7d089bde7ec436e5ed650d5c127e384c734a0de
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.

Orabug: 26477841

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
net/rds/connection.c
net/rds/rds.h
net/rds/tcp.h
net/rds/tcp_connect.c
net/rds/tcp_listen.c