]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mm, memcg: prevent memory.high load/store tearing
authorChris Down <chris@chrisdown.name>
Thu, 2 Apr 2020 04:07:17 +0000 (21:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:28 +0000 (09:35 -0700)
commitf6f989c5cebcc38b2d28c5b5f045d9a0a2082a9b
treec88af345820f48843d33920ce6de7027808230d1
parentc1514c0aac77eb4a2be5d05e4d982f7a9f43063d
mm, memcg: prevent memory.high load/store tearing

A mem_cgroup's high attribute can be concurrently set at the same time as
we are trying to read it -- for example, if we are in memory_high_write at
the same time as we are trying to do high reclaim.

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/2f66f7038ed1d4688e59de72b627ae0ea52efa83.1584034301.git.chris@chrisdown.name
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c