tcp: set TCP_SYNCNT locklessly
authorEric Dumazet <edumazet@google.com>
Fri, 4 Aug 2023 14:46:11 +0000 (14:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Aug 2023 07:24:55 +0000 (08:24 +0100)
commitd44fd4a767b3755899f8ad1df3e8eca3961ba708
tree9a3f8e02c87025cd2a6ac2d79a6e3a211de0b7e8
parent81083076a007d3af3f2216ad9be1374de0687d49
tcp: set TCP_SYNCNT locklessly

icsk->icsk_syn_retries can safely be set without locking the socket.

We have to add READ_ONCE() annotations in tcp_fastopen_synack_timer()
and tcp_write_timeout().

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