]> www.infradead.org Git - nvme.git/commit
net: tcp: un-pin the tw_timer
authorFlorian Westphal <fw@strlen.de>
Thu, 6 Jun 2024 15:11:38 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2024 10:54:18 +0000 (11:54 +0100)
commitc75ad7c759ccead1be462d4cec42bd4ad3578989
tree6f3be2134a87431e4bdbd3b3537f80cd3c615290
parentb334b924c9b709bc969644fb5c406f5c9d01dceb
net: tcp: un-pin the tw_timer

After previous patch, even if timer fires immediately on another CPU,
context that schedules the timer now holds the ehash spinlock, so timer
cannot reap tw socket until ehash lock is released.

BH disable is moved into hashdance_schedule.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/minisocks.c
net/ipv4/inet_timewait_sock.c
net/ipv4/tcp_minisocks.c