aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-10-02 17:30:41 +0000
committerJakub Kicinski <kuba@kernel.org>2024-10-04 15:34:39 -0700
commit3b784293016252118ed3b42c5479f20f89a0f384 (patch)
treed0070b05b96996fc7944c5ee12fbb8eaa71ed81b /net/ipv4/tcp_output.c
parent5a9071a760a61b00260334ad576fe60debafaafc (diff)
downloadlinux-3b784293016252118ed3b42c5479f20f89a0f384.tar.gz
linux-3b784293016252118ed3b42c5479f20f89a0f384.tar.bz2
linux-3b784293016252118ed3b42c5479f20f89a0f384.zip
tcp: add a fast path in tcp_write_timer()
retransmit timer is not stopped from inet_csk_clear_xmit_timer() because we do not define INET_CSK_CLEAR_TIMERS. This is a conscious choice : for active TCP flows, it is better to only call mod_timer(), because there is more chances of keeping the timer unchanged. Also inet_csk_clear_xmit_timer() is often called from another cpu, and calling del_timer() would cause false sharing and lock contention. This means that very often, tcp_write_timer() is called at the timer expiration, while there is nothing to retransmit. This can be detected very early, avoiding the socket spinlock. Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20241002173042.917928-3-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions