Commit 04bdb1a0 authored by shechenglong's avatar shechenglong Committed by Jens Axboe
Browse files

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: default avatarYu Kuai <yukuai@fnnas.com>
Signed-off-by: default avatarshechenglong <shechenglong@xfusion.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1ddb815f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);