[PATCH v1 0/3] cgroup/rstat: global cgroup_rstat_lock changes

Jesper Dangaard Brouer
2024-04-16T17:51:25Z

This patchset is focused on the global cgroup_rstat_lock.

Patch-1: Adds tracepoints to improve measuring lock behavior.
Patch-2: Converts the global lock into a mutex.
Patch-3: Limits userspace triggered pressure on the lock.

Background in discussion thread [1].
[1] https://lore.kernel.org/all/ac4cf07f-52dd-454f-b897-2a4b3796a4d9@kernel.org/

---

Jesper Dangaard Brouer (3):
cgroup/rstat: add cgroup_rstat_lock helpers and tracepoints
cgroup/rstat: convert cgroup_rstat_lock back to mutex
cgroup/rstat: introduce ratelimited rstat flushing

block/blk-cgroup.c | 2 +-
include/linux/cgroup-defs.h | 1 +
include/linux/cgroup.h | 5 +-
include/trace/events/cgroup.h | 48 +++++++++++++++
kernel/cgroup/rstat.c | 111 ++++++++++++++++++++++++++++++----
mm/memcontrol.c | 1 +
6 files changed, 153 insertions(+), 15 deletions(-)

--