From: yonggang.yyg Date: Wed, 20 Mar 2024 16:10:03 +0000 (+0800) Subject: iolog: fix disk stats issue X-Git-Tag: fio-3.37~2^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c492cb1a9b1c327e985c89eb517d58bd5323880c;p=fio.git 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 --- diff --git a/iolog.c b/iolog.c index 760d7b0a..aad6e09b 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; }