diff options
| author | Ming Lei <[email protected]> | 2023-02-02 02:18:04 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-02-02 02:26:41 +0000 |
| commit | 0416f3be58c6b1ea066cd52e354b857693feb01e (patch) | |
| tree | 4c92b2739ef71e6f525743a9bb5f5e1c2dda61e8 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | block: Fix the blk_mq_destroy_queue() documentation (diff) | |
| download | kernel-0416f3be58c6b1ea066cd52e354b857693feb01e.tar.gz kernel-0416f3be58c6b1ea066cd52e354b857693feb01e.zip | |
blk-cgroup: don't update io stat for root cgroup
We source root cgroup stats from the system-wide stats, see blkcg_print_stat
and blkcg_rstat_flush, so don't update io state for root cgroup.
Fixes blkg leak issue introduced in commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()")
which starts to grab blkg's reference when adding iostat_cpu into percpu
blkcg list, but this state won't be consumed by blkcg_rstat_flush() where
the blkg reference is dropped.
Tested-by: Bart van Assche <[email protected]>
Reported-by: Bart van Assche <[email protected]>
Fixes: 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()")
Cc: Tejun Heo <[email protected]>
Cc: Waiman Long <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
