linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3, 0/4] mm, memcg: cgroup v1 and v2 tunable load/store tearing fixes
@ 2023-03-08 16:25 Yue Zhao
  2023-03-08 16:25 ` [PATCH v3, 1/4] mm, memcg: Prevent memory.oom.group load/store tearing Yue Zhao
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Yue Zhao @ 2023-03-08 16:25 UTC (permalink / raw)
  To: akpm
  Cc: roman.gushchin, hannes, mhocko, shakeelb, muchun.song, willy,
	linux-mm, cgroups, linux-kernel, tangyeechou, Yue Zhao

This patch series helps to prevent load/store tearing in
several cgroup knobs.

As kindly pointed out by Michal Hocko, we should add 
[WRITE|READ]_ONCE for all occurrences of memcg->oom_kill_disable,
memcg->swappiness and memcg->soft_limit.

v3:
- Add [WRITE|READ]_ONCE for all occurrences of
memcg->oom_kill_disable, memcg->swappiness and memcg->soft_limit
v2:
- Rephrase changelog
- Add [WRITE|READ]_ONCE for memcg->oom_kill_disable,
 memcg->swappiness, vm_swappiness and memcg->soft_limit
v1:
- Add [WRITE|READ]_ONCE for memcg->oom_group

Past patches:
V2: https://lore.kernel.org/linux-mm/20230306154138.3775-1-findns94@gmail.com/
V1: https://lore.kernel.org/linux-mm/20230220151638.1371-1-findns94@gmail.com/

Yue Zhao (4):
  mm, memcg: Prevent memory.oom.group load/store tearing
  mm, memcg: Prevent memory.swappiness load/store tearing
  mm, memcg: Prevent memory.oom_control load/store tearing
  mm, memcg: Prevent memory.soft_limit_in_bytes load/store tearing

 include/linux/swap.h |  8 ++++----
 mm/memcontrol.c      | 30 +++++++++++++++---------------
 2 files changed, 19 insertions(+), 19 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-18  0:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 16:25 [PATCH v3, 0/4] mm, memcg: cgroup v1 and v2 tunable load/store tearing fixes Yue Zhao
2023-03-08 16:25 ` [PATCH v3, 1/4] mm, memcg: Prevent memory.oom.group load/store tearing Yue Zhao
2023-03-08 16:25 ` [PATCH v3, 2/4] mm, memcg: Prevent memory.swappiness " Yue Zhao
2023-03-08 16:25 ` [PATCH v3, 3/4] mm, memcg: Prevent memory.oom_control " Yue Zhao
2023-03-08 16:25 ` [PATCH v3, 4/4] mm, memcg: Prevent memory.soft_limit_in_bytes " Yue Zhao
2023-03-08 17:40 ` [PATCH v3, 0/4] mm, memcg: cgroup v1 and v2 tunable load/store tearing fixes Michal Hocko
2023-03-18  0:58   ` Shakeel Butt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox