commit | ebb3b78db7bf842270a46fd4fe7cc45c78fa5ed6 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Thu Oct 10 20:17:44 2019 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sun Oct 13 10:13:08 2019 -0700 |
tree | 9a0ecbc667473f785c77851f2db6c31f1fa3d2a4 | |
parent | d9b55bf7b6788ec0bd1db1acefbc4feb1399144a [diff] |
tcp: annotate sk->sk_rcvbuf lockless reads For the sake of tcp_poll(), there are few places where we fetch sk->sk_rcvbuf 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. Note that other transports probably need similar fixes. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>