aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryonggang.yyg <yygcode@gmail.com>2024-03-21 00:10:03 +0800
committeryonggang.yyg <yygcode@gmail.com>2024-03-22 22:31:01 +0800
commitc492cb1a9b1c327e985c89eb517d58bd5323880c (patch)
treef8ed0a506410584769c2300d810b2aa66f84ba70
parent40e5f1bf1aca5970528724873a4544c43712a75d (diff)
downloadfio-c492cb1a9b1c327e985c89eb517d58bd5323880c.tar.gz
iolog: fix disk stats issue
In the iolog replay scenario, the disk util in the td structure is not initialized, resulting in the disk stats not being correctly updated. Fixes: https://github.com/axboe/fio/issues/1735 Signed-off-by: Yong Gang <yygcode@gmail.com>
-rw-r--r--iolog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iolog.c b/iolog.c
index 760d7b0a4..aad6e09b8 100644
--- a/iolog.c
+++ b/iolog.c
@@ -588,6 +588,8 @@ int init_iolog(struct thread_data *td)
if (ret)
td_verror(td, EINVAL, "failed initializing iolog");
+ init_disk_util(td);
+
return ret;
}