]> www.infradead.org Git - users/dwmw2/linux.git/commit
Merge branch 'tcp-add-fast-path-in-timer-handlers'
authorJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 22:34:42 +0000 (15:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 22:34:43 +0000 (15:34 -0700)
commit2f651683553694c28fcc2d7544a5b223aa4ac9d8
treedf289ef19ee340cfcca7a6582f13037978ae706f
parentd454184bba235d3a5d1ff4b30597b43a08c00f70
parent81df4fa94ee8c0800ed42c47357435602ed105ad
Merge branch 'tcp-add-fast-path-in-timer-handlers'

Eric Dumazet says:

====================
tcp: add fast path in timer handlers

As mentioned in Netconf 2024:

TCP retransmit and delack timers are not stopped from
inet_csk_clear_xmit_timer() because we do not define
INET_CSK_CLEAR_TIMERS.

Enabling INET_CSK_CLEAR_TIMERS leads to lower performance,
mainly because del_timer() and mod_timer() happen from
different cpus quite often.

What we can do instead is to add fast paths to tcp_write_timer()
and tcp_delack_timer() to avoid socket spinlock acquisition.
====================

Link: https://patch.msgid.link/20241002173042.917928-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>