summaryrefslogtreecommitdiffstats
path: root/net/rds/tcp_listen.c
diff options
context:
space:
mode:
authorSowmini Varadhan2017-06-21 22:40:13 +0200
committerDavid S. Miller2017-06-22 17:34:04 +0200
commitc14b0366813a8f6df7de181d8a333af7db6fb84e (patch)
tree25b75d4ca8004759f2da15b26f2cc5700e51becf /net/rds/tcp_listen.c
parentrds: tcp: send handshake ping-probe from passive endpoint (diff)
downloadkernel-qcow2-linux-c14b0366813a8f6df7de181d8a333af7db6fb84e.tar.gz
kernel-qcow2-linux-c14b0366813a8f6df7de181d8a333af7db6fb84e.tar.xz
kernel-qcow2-linux-c14b0366813a8f6df7de181d8a333af7db6fb84e.zip
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>
Diffstat (limited to 'net/rds/tcp_listen.c')
-rw-r--r--net/rds/tcp_listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c
index 6089e9a8e00a..c6dc8caaf5ca 100644
--- a/net/rds/tcp_listen.c
+++ b/net/rds/tcp_listen.c
@@ -112,7 +112,7 @@ struct rds_tcp_connection *rds_tcp_accept_one_path(struct rds_connection *conn)
return NULL;
}
-static void rds_tcp_set_linger(struct socket *sock)
+void rds_tcp_set_linger(struct socket *sock)
{
struct linger no_linger = {
.l_onoff = 1,