]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:34 +0000 (13:57 +0200)
commit308f141667f267b72ab2b19a47017145e4021fcb
tree9c53f986e6dbea2dca8fe3a86b61a7d2aa151681
parentc7230236060fa9d92fdeed4cd6122e9e64f232c2
blk-cgroup: set blkg iostat after percpu stat aggregation

[ Upstream commit f122d103b564e5fb7c82de902c6f8f6cbdf50ec9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-cgroup.c