Ming Lei 0416f3be58 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 <bvanassche@acm.org>
Reported-by: Bart van Assche <bvanassche@acm.org>
Fixes: 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()")
Cc: Tejun Heo <tj@kernel.org>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230202021804.278582-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-02-01 19:26:41 -07:00
..
2023-01-04 14:43:27 -07:00
2022-12-13 10:43:59 -08:00
2022-10-07 09:19:14 -07:00
2022-11-01 09:12:24 -06:00
2022-12-13 10:43:59 -08:00
2022-12-13 10:43:59 -08:00
2022-02-02 07:49:59 -07:00
2022-11-16 11:32:53 -07:00
2023-01-05 08:50:10 -07:00
2022-12-13 10:43:59 -08:00
2022-03-07 12:48:35 -07:00