Re: [PATCH net] tcp: annotate lockless access to tcp_memory_pressure

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 15:10:15 -0700, Eric Dumazet wrote: > 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: int

[PATCH net] tcp: annotate lockless access to tcp_memory_pressure

2019-10-09 Thread Eric Dumazet
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 --- i