Searched hist:"1 f142c17d19a5618d5a633195a46f2c8be9bf232" (Results 1 – 2 of 2) sorted by relevance
/linux/include/net/ |
H A D | tcp.h | diff 1f142c17d19a5618d5a633195a46f2c8be9bf232 Thu Oct 10 00:10:15 CEST 2019 Eric Dumazet <edumazet@google.com> tcp: annotate lockless access to tcp_memory_pressure
tcp_memory_pressure is read without holding any lock, and its value could be changed on other cpus.
Use READ_ONCE() to annotate these lockless reads.
The write side is already using atomic ops.
Fixes: b8da51ebb1aa ("tcp: introduce tcp_under_memory_pressure()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
|
/linux/net/ipv4/ |
H A D | tcp.c | diff 1f142c17d19a5618d5a633195a46f2c8be9bf232 Thu Oct 10 00:10:15 CEST 2019 Eric Dumazet <edumazet@google.com> tcp: annotate lockless access to tcp_memory_pressure
tcp_memory_pressure is read without holding any lock, and its value could be changed on other cpus.
Use READ_ONCE() to annotate these lockless reads.
The write side is already using atomic ops.
Fixes: b8da51ebb1aa ("tcp: introduce tcp_under_memory_pressure()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
|