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: introduce tcp_under_memory_pressure()") > Signed-off-by: Eric Dumazet <eduma...@google.com>
Applied, thanks!