From: Vincent Fu Date: Fri, 31 Jan 2020 22:27:26 +0000 (-0500) Subject: stat: fix high/low prio unified rw bug X-Git-Tag: fio-3.18~1^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=77e352c9c94a2af8a727dacd0a3edda609130276;p=fio.git 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 --- 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);