aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/mapping_dirty_helpers.c
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2020-04-01 21:07:33 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-02 09:35:29 -0700
commitb3a7822e5e7513006d74946a69bfbbc8d8472e90 (patch)
tree3eb11a32c0ab0fd8cfcb357a08e54f293a57cee7 /mm/mapping_dirty_helpers.c
parentmm, memcg: prevent memory.swap.max load tearing (diff)
downloadwireguard-linux-b3a7822e5e7513006d74946a69bfbbc8d8472e90.tar.xz
wireguard-linux-b3a7822e5e7513006d74946a69bfbbc8d8472e90.zip
mm, memcg: prevent mem_cgroup_protected store tearing
The read side of this is all protected, but we can still tear if multiple iterations of mem_cgroup_protected are going at the same time. There's some intentional racing in mem_cgroup_protected which is ok, but load/store tearing should be avoided. 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/d1e9fbc0379fe8db475d82c8b6fbe048876e12ae.1584034301.git.chris@chrisdown.name Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mapping_dirty_helpers.c')
0 files changed, 0 insertions, 0 deletions