Commit 35016776 authored by Abel Wu's avatar Abel Wu Committed by Greg Kroah-Hartman
Browse files

cgroup/rstat: Fix forceidle time in cpu.stat



[ Upstream commit c4af66a9 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 39bc1484
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment