From 77e352c9c94a2af8a727dacd0a3edda609130276 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Fri, 31 Jan 2020 17:27:26 -0500 Subject: [PATCH] stat: fix high/low prio unified rw bug With unified_rw_reporting enabled, high/low priority summary statistics were not correctly reported. This patch fixes the problem. Signed-off-by: Vincent Fu --- stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat.c b/stat.c index 55f2d8b2..69d57b69 100644 --- a/stat.c +++ b/stat.c @@ -1888,8 +1888,8 @@ void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src, dst->runtime[l] = src->runtime[l]; } else { sum_stat(&dst->clat_stat[0], &src->clat_stat[l], first, false); - sum_stat(&dst->clat_high_prio_stat[l], &src->clat_high_prio_stat[l], first, false); - sum_stat(&dst->clat_low_prio_stat[l], &src->clat_low_prio_stat[l], first, false); + sum_stat(&dst->clat_high_prio_stat[0], &src->clat_high_prio_stat[l], first, false); + sum_stat(&dst->clat_low_prio_stat[0], &src->clat_low_prio_stat[l], first, false); sum_stat(&dst->slat_stat[0], &src->slat_stat[l], first, false); sum_stat(&dst->lat_stat[0], &src->lat_stat[l], first, false); sum_stat(&dst->bw_stat[0], &src->bw_stat[l], first, true); -- 2.25.1