Skip to content

Commit 04bdb1a

Browse files
shechenglong-fusionaxboe
authored andcommitted
block,bfq: fix aux stat accumulation destination
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>
1 parent 1ddb815 commit 04bdb1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/bfq-cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static void bfqg_stats_add_aux(struct bfqg_stats *to, struct bfqg_stats *from)
380380
blkg_rwstat_add_aux(&to->merged, &from->merged);
381381
blkg_rwstat_add_aux(&to->service_time, &from->service_time);
382382
blkg_rwstat_add_aux(&to->wait_time, &from->wait_time);
383-
bfq_stat_add_aux(&from->time, &from->time);
383+
bfq_stat_add_aux(&to->time, &from->time);
384384
bfq_stat_add_aux(&to->avg_queue_size_sum, &from->avg_queue_size_sum);
385385
bfq_stat_add_aux(&to->avg_queue_size_samples,
386386
&from->avg_queue_size_samples);

0 commit comments

Comments
 (0)