From 0433ff32f567fd9c7f952806046b455e8d4e2501 Mon Sep 17 00:00:00 2001 From: "yonggang.yyg" Date: Thu, 21 Mar 2024 00:10:03 +0800 Subject: [PATCH] [PATCH] iolog: fix disk stats issue The disk util structure of the td does not initialized when iolog replay, and the disk stats is the initial value. Signed-off-by: yonggang.yyg --- iolog.c | 2 ++ 1 file changed, 2 insertions(+) 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; }