linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6] mm, memcg: cg2 memory{.swap,}.peak write handlers
@ 2024-07-29 14:37 David Finkel
  2024-07-29 14:37 ` [PATCH v6 1/2] " David Finkel
  2024-07-29 14:37 ` [PATCH v6 2/2] mm, memcg: cg2 memory{.swap,}.peak write tests David Finkel
  0 siblings, 2 replies; 7+ messages in thread
From: David Finkel @ 2024-07-29 14:37 UTC (permalink / raw)
  To: Muchun Song, Tejun Heo, Roman Gushchin, Andrew Morton
  Cc: core-services, Jonathan Corbet, Michal Hocko, Shakeel Butt,
	Shuah Khan, Johannes Weiner, Zefan Li, cgroups, linux-doc,
	linux-mm, linux-kselftest, Michal Koutný

This is an updated patchset rebasing onto -torvalds master (post
6.11-rc1), and addressing comments from Michal and Tejun.

As requested by Tejun and Johannes, I've removed the explicit check for
the string "reset", so it now allows any non-empty string. (Empty
strings get filtered before our write handler executes)

I've also made several of the field reads and writes atomic with
{READ,WRITE}_ONCE, and adjusted more of the types to be unsigned.

Documentation/admin-guide/cgroup-v2.rst          |  22 ++--
include/linux/cgroup-defs.h                      |   5 +
include/linux/cgroup.h                           |   3 +
include/linux/memcontrol.h                       |   5 +
include/linux/page_counter.h                     |  11 +-
kernel/cgroup/cgroup-internal.h                  |   2 +
kernel/cgroup/cgroup.c                           |   7 +
mm/memcontrol.c                                  | 116 +++++++++++++++--
mm/page_counter.c                                |  30 +++--
tools/testing/selftests/cgroup/cgroup_util.c     |  22 ++++
tools/testing/selftests/cgroup/cgroup_util.h     |   2 +
tools/testing/selftests/cgroup/test_memcontrol.c | 229 +++++++++++++++++++++++++++++++--
12 files changed, 419 insertions(+), 35 deletions(-)

[1]: https://lore.kernel.org/cgroups/20240724161942.3448841-3-davidf@vimeo.com/T/





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

end of thread, other threads:[~2024-07-30 15:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-29 14:37 [PATCH v6] mm, memcg: cg2 memory{.swap,}.peak write handlers David Finkel
2024-07-29 14:37 ` [PATCH v6 1/2] " David Finkel
2024-07-30  2:38   ` Johannes Weiner
2024-07-30 15:48   ` Michal Koutný
2024-07-29 14:37 ` [PATCH v6 2/2] mm, memcg: cg2 memory{.swap,}.peak write tests David Finkel
2024-07-30 15:46   ` Michal Koutný
2024-07-30 15:52     ` David Finkel

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