tcp: annotate data-races around tp->tcp_tx_delay
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:47 +0000 (21:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 19:34:17 +0000 (12:34 -0700)
commit348b81b68b13ebd489a3e6a46aa1c384c731c919
tree055f09e8001cd23eb870cc8248c297daf032472e
parentac528649f7c63bc233cc0d33cff11f767cc666e3
tcp: annotate data-races around tp->tcp_tx_delay

do_tcp_getsockopt() reads tp->tcp_tx_delay while another cpu
might change its value.

Fixes: a842fe1425cb ("tcp: add optional per socket transmit delay")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c