diff --git a/0001-fix-disk-stats-issue.patch b/0001-fix-disk-stats-issue.patch new file mode 100644 index 0000000000000000000000000000000000000000..e2301825315a8b252ccaf34efefacc45ecc3d897 --- /dev/null +++ b/0001-fix-disk-stats-issue.patch @@ -0,0 +1,31 @@ +From c492cb1a9b1c327e985c89eb517d58bd5323880c Mon Sep 17 00:00:00 2001 +From: Yong Gang +Date: Mon, 15 Apr 2024 15:06:11 +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 +--- + iolog.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/iolog.c b/iolog.c +index 5213c60..d447e4d 100644 +--- a/iolog.c ++++ b/iolog.c +@@ -812,6 +812,8 @@ bool init_iolog(struct thread_data *td) + if (!ret) + td_verror(td, EINVAL, "failed initializing iolog"); + ++ init_disk_util(td); ++ + return ret; + } + +-- +2.27.0 + diff --git a/fio.spec b/fio.spec index 4655b7c37c07f1ad771f7aeac59d14f88463c414..7796856ed0f5d583864174970f9438f4a4514acb 100644 --- a/fio.spec +++ b/fio.spec @@ -1,12 +1,14 @@ Name: fio Version: 3.36 -Release: 1 +Release: 2 Summary: Multithreaded IO generation tool License: GPLv2 URL: http://git.kernel.dk/?p=fio.git;a=summary Source0: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 +#https://github.com/axboe/fio/pull/1736 +Patch0001: 0001-fix-disk-stats-issue.patch BuildRequires: gcc BuildRequires: libaio-devel @@ -80,6 +82,9 @@ make test %changelog +* Mon Apr 15 2024 cenhuilin - 3.36-2 +- iolog: fix disk stats issue + * Thu Mar 14 2024 xu_ping <707078654@qq.com> - 3.36-1 - Update to 3.36