cgroup: remove per-cpu per-subsystem locks
authorShakeel Butt <shakeel.butt@linux.dev>
Tue, 17 Jun 2025 19:57:24 +0000 (12:57 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 17 Jun 2025 20:01:18 +0000 (10:01 -1000)
commit6af89c6ca71742e9227e6f8172a86ce1ee16aa85
tree43c277395e33b31d96b681dd3ec4cfda0165c623
parent36df6e3dbd7e7b074e55fec080012184e2fa3a46
cgroup: remove per-cpu per-subsystem locks

The rstat update side used to insert the cgroup whose stats are updated
in the update tree and the read side flush the update tree to get the
latest uptodate stats. The per-cpu per-subsystem locks were used to
synchronize the update and flush side. However now the update side does
not access update tree but uses per-cpu lockless lists. So there is no
need for locks to synchronize update and flush side. Let's remove them.

Suggested-by: JP Kobryn <inwardvessel@gmail.com>
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Tested-by: JP Kobryn <inwardvessel@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup-defs.h
include/trace/events/cgroup.h
kernel/cgroup/rstat.c