block: fix aux stat accumulation destination
Subsystems (4)
PATCH 1/1 block: 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.
--- block/bfq-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/bfq-cgroup.c +1 -1
@@ -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);
Signature · 1 line
2.43.0
Hi,
Quoted 7 lines · shechenglong
Route
bfqg_stats_add_aux()time accumulation into the destination stats object instead of the source, aligning with other stat fields.Signed-off-by shechenglong <[email protected]>--- block/bfq-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Please change the title and follow existing prefix:
block, bfq: fix aux stat accumulation destination
Otherwise, feel free to add:
Quoted 14 lines
block/bfq-cgroup.c +1
-1@@ -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);
Signature · 2 lines
Thansk, Kuai
v2 cover block,bfq: fix aux stat accumulation destination
Quoted 4 lines
Please change the title and follow existing prefix:
block, bfq: fix aux stat accumulation destination Otherwise, feel free to add:Reviewed-by Yu Kuai <[email protected]>
Thanks to Yu Kuai for the review and helpful feedback.
shechenglong (1):
block,bfq: fix aux stat accumulation destination
block/bfq-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Best regards,
shechenglong
Signature · 1 line
2.43.0
PATCH v2 1/1 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.
--- block/bfq-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/bfq-cgroup.c +1 -1
@@ -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);
Signature · 1 line
2.43.0
Re: [PATCH v2 0/1] block,bfq: fix aux stat accumulation destination
In reply to shechenglongQuoted 8 lines · shechenglong
Quoted 4 lines
Please change the title and follow existing prefix:
block, bfq: fix aux stat accumulation destination Otherwise, feel free to add:Reviewed-by Yu Kuai <[email protected]>Thanks to Yu Kuai for the review and helpful feedback.
[...]
Applied, thanks!
[1/1] block,bfq: fix aux stat accumulation destination
commit: 04bdb1a04d8a2a89df504c1e34250cd3c6e31a1c
Best regards,
Signature · 1 line
Jens Axboe