Eric Dumazet ab4e846a82 tcp: annotate sk->sk_wmem_queued lockless reads
For the sake of tcp_poll(), there are few places where we fetch
sk->sk_wmem_queued 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.

sk_wmem_queued_add() helper is added so that we can in
the future convert to ADD_ONCE() or equivalent if/when
available.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-13 10:13:08 -07:00
..
2019-07-10 20:55:33 -07:00
2018-04-16 11:53:35 +01:00
2017-12-13 15:10:01 -05:00
2019-09-05 20:10:07 +02:00
2019-07-12 17:28:24 -07:00
2017-11-17 09:51:57 -08:00
2019-03-27 15:52:01 -03:00
2017-09-25 20:38:26 +02:00
2019-08-21 00:38:54 +02:00
2018-02-13 21:30:22 +01:00
2017-12-19 10:56:24 +01:00
2019-05-09 14:33:15 -07:00
2019-03-24 20:29:33 +01:00