tcp: annotate data-races around tp->notsent_lowat
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:55 +0000 (21:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 19:34:18 +0000 (12:34 -0700)
commit1aeb87bc1440c5447a7fa2d6e3c2cca52cbd206b
treeda6989426c0f6a60fc3af24da6df5ebb71cd4ae1
parentae488c74422fb1dcd807c0201804b3b5e8a322a3
tcp: annotate data-races around tp->notsent_lowat

tp->notsent_lowat can be read locklessly from do_tcp_getsockopt()
and tcp_poll().

Fixes: c9bee3b7fdec ("tcp: TCP_NOTSENT_LOWAT socket option")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-10-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c