[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251228130426.1338-2-shechenglong@xfusion.com>
Date: Sun, 28 Dec 2025 21:04:26 +0800
From: shechenglong <shechenglong@...sion.com>
To: <yukuai@...as.com>, <axboe@...nel.dk>
CC: <cgroups@...r.kernel.org>, <chenjialong@...sion.com>,
<josef@...icpanda.com>, <linux-block@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <stone.xulei@...sion.com>, <tj@...nel.org>,
shechenglong <shechenglong@...sion.com>
Subject: [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.
Reviewed-by: Yu Kuai <yukuai@...as.com>
Signed-off-by: shechenglong <shechenglong@...sion.com>
---
block/bfq-cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
index 9fb9f3533150..6a75fe1c7a5c 100644
--- a/block/bfq-cgroup.c
+++ b/block/bfq-cgroup.c
@@ -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);
--
2.43.0
Powered by blists - more mailing lists