summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorshechenglong <shechenglong@xfusion.com>2025-12-28 21:04:26 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-11 13:34:22 +0100
commite88e59d03ab84451bfd7d727993557e25510569e (patch)
treeba4b4dc41bf50c3dbdbdc4aae145a2b20cf26b6a /block
parent18615247e7362af678e377fb2480a54d3726408d (diff)
downloadlinux-e88e59d03ab84451bfd7d727993557e25510569e.tar.gz
linux-e88e59d03ab84451bfd7d727993557e25510569e.tar.bz2
linux-e88e59d03ab84451bfd7d727993557e25510569e.zip
block,bfq: fix aux stat accumulation destination
[ Upstream commit 04bdb1a04d8a2a89df504c1e34250cd3c6e31a1c ] Route bfqg_stats_add_aux() time accumulation into the destination stats object instead of the source, aligning with other stat fields. Reviewed-by: Yu Kuai <yukuai@fnnas.com> Signed-off-by: shechenglong <shechenglong@xfusion.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
-rw-r--r--block/bfq-cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
index 1f9ccc661d57..14341376702e 100644
--- a/block/bfq-cgroup.c
+++ b/block/bfq-cgroup.c
@@ -387,7 +387,7 @@ static void bfqg_stats_add_aux(struct bfqg_stats *to, struct bfqg_stats *from)
blkg_rwstat_add_aux(&to->merged, &from->merged);
blkg_rwstat_add_aux(&to->service_time, &from->service_time);
blkg_rwstat_add_aux(&to->wait_time, &from->wait_time);
- bfq_stat_add_aux(&from->time, &from->time);
+ bfq_stat_add_aux(&to->time, &from->time);
bfq_stat_add_aux(&to->avg_queue_size_sum, &from->avg_queue_size_sum);
bfq_stat_add_aux(&to->avg_queue_size_samples,
&from->avg_queue_size_samples);