]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
block,bfq: fix aux stat accumulation destination
authorshechenglong <shechenglong@xfusion.com>
Sun, 28 Dec 2025 13:04:26 +0000 (21:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Dec 2025 16:03:51 +0000 (09:03 -0700)
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>
block/bfq-cgroup.c

index 9fb9f353315025a4004b8097bb138ddfe34a0dd2..6a75fe1c7a5c0e9df4c87e1a7cc6797038924df3 100644 (file)
@@ -380,7 +380,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);