Files
twx-linux/include/net
Eric Dumazet a8e920b220 tcp: annotate lockless access to tcp_memory_pressure
[ Upstream commit 1f142c17d1 ]

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: b8da51ebb1 ("tcp: introduce tcp_under_memory_pressure()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:50 +01:00
..
2019-05-08 07:20:45 +02:00
2019-06-17 19:52:44 +02:00
2019-03-23 14:35:16 +01:00
2019-12-05 15:38:18 +01:00
2019-02-23 09:06:44 +01:00
2019-11-10 11:25:37 +01:00
2019-03-13 14:03:09 -07:00
2019-11-20 17:59:59 +01:00
2019-09-16 08:20:44 +02:00