blk-cgroup: set blkg iostat after percpu stat aggregation
authorChengming Zhou <zhouchengming@bytedance.com>
Sun, 13 Feb 2022 08:59:02 +0000 (16:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Feb 2022 21:13:12 +0000 (14:13 -0700)
commitf122d103b564e5fb7c82de902c6f8f6cbdf50ec9
tree13ffa5fba9d86a83437063ef96ee0e9889c078e9
parentec9fd2a13d743ae129bd1b5c6edea0d65260ce10
blk-cgroup: set blkg iostat after percpu stat aggregation

Don't need to do blkg_iostat_set for top blkg iostat on each CPU,
so move it after percpu stat aggregation.

Fixes: ef45fe470e1e ("blk-cgroup: show global disk stats in root cgroup io.stat")
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220213085902.88884-1-zhouchengming@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c