Commit c4af66a
cgroup/rstat: Fix forceidle time in cpu.stat
The commit b824766 ("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: b824766 ("cgroup/rstat: add force idle show helper")
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent ad6c08d commit c4af66a
1 file changed
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | | - | |
623 | | - | |
| 622 | + | |
624 | 623 | | |
625 | 624 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
| 625 | + | |
632 | 626 | | |
633 | 627 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
638 | 632 | | |
639 | 633 | | |
640 | 634 | | |
641 | 635 | | |
642 | 636 | | |
643 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
644 | 641 | | |
645 | | - | |
| 642 | + | |
646 | 643 | | |
647 | 644 | | |
648 | 645 | | |
| |||
0 commit comments