OSDN Git Service

tcp: refactor tcp_retransmit_timer()
authorEric Dumazet <edumazet@google.com>
Tue, 3 Dec 2019 16:05:52 +0000 (08:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Dec 2019 19:52:38 +0000 (11:52 -0800)
commit0d580fbd2db084a5c96ee9c00492236a279d5e0f
tree5cc51447d1d51d8b87151c5706cf819314b7c410
parent9385973fe8db9743fa93bf17245635be4eb8c4a6
tcp: refactor tcp_retransmit_timer()

It appears linux-4.14 stable needs a backport of commit
88f8598d0a30 ("tcp: exit if nothing to retransmit on RTO timeout")

Since tcp_rtx_queue_empty() is not in pre 4.15 kernels,
let's refactor tcp_retransmit_timer() to only use tcp_rtx_queue_head()

I will provide to stable teams the squashed patches.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c