tcp: set TCP_LINGER2 locklessly
authorEric Dumazet <edumazet@google.com>
Fri, 4 Aug 2023 14:46:15 +0000 (14:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Aug 2023 07:24:55 +0000 (08:24 +0100)
commita81722ddd7e4d76c9bbff078d29416e18c6d7f71
tree83bf415b9788593c662c6fb41522bfaddbdf8ac9
parent84485080cbc1e5a011e7549966739df4cec158b1
tcp: set TCP_LINGER2 locklessly

tp->linger2 can be set locklessly as long as readers
use READ_ONCE().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_timer.c