fio/0001-fix-disk-stats-issue.patch
cenhuilin 78b2cdf219 fix disk stats issue
(cherry picked from commit 065d8f23c0f41ca162bf07e2a8c4a38cad066966)
2024-05-27 17:40:17 +08:00

32 lines
718 B
Diff

From c492cb1a9b1c327e985c89eb517d58bd5323880c Mon Sep 17 00:00:00 2001
From: Yong Gang <yygcode@gmail.com>
Date: Mon, 27 May 2024 11:15:56 +0800
Subject: [PATCH] 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: #1735
Signed-off-by: Yong Gang <yygcode@gmail.com>
---
iolog.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iolog.c b/iolog.c
index 1aeb7a7..8314787 100644
--- a/iolog.c
+++ b/iolog.c
@@ -722,6 +722,8 @@ bool init_iolog(struct thread_data *td)
if (!ret)
td_verror(td, EINVAL, "failed initializing iolog");
+ init_disk_util(td);
+
return ret;
}
--
2.33.0