]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/rstat: Fix forceidle time in cpu.stat
authorAbel Wu <wuyun.abel@bytedance.com>
Sun, 9 Feb 2025 06:13:11 +0000 (14:13 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 27 Feb 2025 17:19:17 +0000 (07:19 -1000)
commitc4af66a95aa3bc1d4f607ebd4eea524fb58946e3
tree577faa9acca7010c336a7a37f97e5410a8c6dc71
parentad6c08d8c1045843ec564a73981ece6ec31d11a0
cgroup/rstat: Fix forceidle time in cpu.stat

The commit b824766504e4 ("cgroup/rstat: add force idle show helper")
retrieves forceidle_time outside cgroup_rstat_lock for non-root cgroups
which can be potentially inconsistent with other stats.

Rather than reverting that commit, fix it in a way that retains the
effort of cleaning up the ifdef-messes.

Fixes: b824766504e4 ("cgroup/rstat: add force idle show helper")
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rstat.c