diff options
author | yonggang.yyg <yygcode@gmail.com> | 2024-03-21 00:10:03 +0800 |
---|---|---|
committer | yonggang.yyg <yygcode@gmail.com> | 2024-03-22 22:31:01 +0800 |
commit | c492cb1a9b1c327e985c89eb517d58bd5323880c (patch) | |
tree | f8ed0a506410584769c2300d810b2aa66f84ba70 | |
parent | 40e5f1bf1aca5970528724873a4544c43712a75d (diff) | |
download | fio-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |