tcp: annotate tp->snd_nxt lockless reads
authorEric Dumazet <edumazet@google.com>
Fri, 11 Oct 2019 03:17:42 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2019 17:13:08 +0000 (10:13 -0700)
commite0d694d638dba768b47be31c22e1a9b4f862f561
treec35cd9fe92b9008fda870b5ae83b3971e6632a60
parent0f31746452e6793ad6271337438af8f4defb8940
tcp: annotate tp->snd_nxt lockless reads

There are few places where we fetch tp->snd_nxt while
this field can change from IRQ or other cpu.

We need to add READ_ONCE() annotations, and also make
sure write sides use corresponding WRITE_ONCE() to avoid
store-tearing.

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