diff options
author | Eric Dumazet <edumazet@google.com> | 2023-08-31 16:52:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-01 09:27:33 +0300 |
commit | 5e6300e7b3a4ab5b72a82079753868e91fbf9efc (patch) | |
tree | c0376ce7b3667e6187785217db48aec2fd17d29a /COPYING | |
parent | 66d58f046c9d3a8f996b7138d02e965fd0617de0 (diff) | |
download | linux-5e6300e7b3a4ab5b72a82079753868e91fbf9efc.tar.xz |
net: annotate data-races around sk->sk_forward_alloc
Every time sk->sk_forward_alloc is read locklessly,
add a READ_ONCE().
Add sk_forward_alloc_add() helper to centralize updates,
to reduce number of WRITE_ONCE().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions