]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - mm/page_counter.c
mm, memcg: prevent memory.low load/store tearing
authorChris Down <chris@chrisdown.name>
Thu, 2 Apr 2020 04:07:24 +0000 (21:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:28 +0000 (09:35 -0700)
commitf86b810c2610b08afc82218068d1dfeef02dd0a1
tree75c734e95fcf41e1cd7f53801b1631c90a5158b4
parent15b42562d46debadaebd77ac1a647abae139a231
mm, memcg: prevent memory.low load/store tearing

This can be set concurrently with reads, which may cause the wrong value
to be propagated.

Signed-off-by: Chris Down <chris@chrisdown.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Roman Gushchin <guro@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/448206f44b0fa7be9dad2ca2601d2bcb2c0b7844.1584034301.git.chris@chrisdown.name
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_counter.c