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@xxxxxxxxxx/ --- 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(-) --