mbox series

[net-next,v6,0/3] net: tcp: un-pin tw timer

Message ID 20240603093625.4055-1-fw@strlen.de (mailing list archive)
Headers show
Series net: tcp: un-pin tw timer | expand

Message

Florian Westphal June 3, 2024, 9:36 a.m. UTC
This is v6 of the series where the tw_timer is un-pinned to get rid of
interferences in isolated CPUs setups.

First patch makes necessary preparations, existing code relies on
TIMER_PINNED to avoid races.

Second patch un-pins the TW timer. Could be folded into the first one,
but it might help wrt. bisection.

Third patch is a minor cleanup to move a helper from .h to the only
remaining compilation unit.

Tested with iperf3 and stress-ng socket mode.

Changes since previous iteration:
 - do not use work queues, keep timers as-is
 - use timer_shutdown (can't wait for timer with spinlock held)
 - keep existing tw sk refcount (3)

Florian Westphal (2):
  net: tcp: un-pin the tw_timer
  tcp: move inet_twsk_schedule helper out of header

Valentin Schneider (1):
  net: tcp/dcpp: prepare for tw_timer un-pinning

 include/net/inet_timewait_sock.h | 11 ++---
 net/dccp/minisocks.c             |  3 +-
 net/ipv4/inet_timewait_sock.c    | 81 +++++++++++++++++++++++++++-----
 net/ipv4/tcp_minisocks.c         |  3 +-
 4 files changed, 74 insertions(+), 24 deletions(-)