]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit258c53faaa228745cc6219c39c1a9a34d9652213
tree13ffa5fba9d86a83437063ef96ee0e9889c078e9
parent03bf0bd9b4342a2093050ad08b1389c4c09fa2ee
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: 4d018b7c51aa ("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