]> 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)
commit6ac5ac5889c9c45ecd56a9d5e401942011c34c4c
tree13ffa5fba9d86a83437063ef96ee0e9889c078e9
parent2b9310aa17691e27d886820ce04bf9d36022a82e
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: c4906b8a9bed ("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