Commit c4af66a9 authored by Abel Wu's avatar Abel Wu Committed by Tejun Heo
Browse files

cgroup/rstat: Fix forceidle time in cpu.stat



The commit b8247665 ("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: b8247665 ("cgroup/rstat: add force idle show helper")
Signed-off-by: default avatarAbel Wu <wuyun.abel@bytedance.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent ad6c08d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment