diff --git a/0001-fix-disk-stats-issue.patch b/0001-fix-disk-stats-issue.patch new file mode 100644 index 0000000000000000000000000000000000000000..a62a1d65bf11eaf8688f940184ff8cd0b4a0bce5 --- /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, 27 May 2024 14:07:34 +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 6e44119..7bc44e6 100644 +--- a/iolog.c ++++ b/iolog.c +@@ -585,6 +585,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 + diff --git a/fio.spec b/fio.spec index f78ea621964842c89c9289bc2696c5382e3138ff..b89b79faf2e3be4be3ff63b73ec1d8fd3066dae8 100644 --- a/fio.spec +++ b/fio.spec @@ -1,10 +1,13 @@ Name: fio Version: 3.7 -Release: 7 +Release: 8 Summary: Versatile IO workload generator License: GPLv2 URL: http://git.kernel.dk/?p=fio.git;a=summary Source: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 +#https://github.com/axboe/fio/pull/1736 +Patch0001: 0001-fix-disk-stats-issue.patch + BuildRequires: libaio-devel zlib-devel librbd1-devel numactl-devel librdmacm-devel %ifarch x86_64 @@ -46,6 +49,9 @@ export EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{_mandir}/man1/* %changelog +* Mon May 27 2024 cenhuilin - 3.7-8 +- iolog: fix disk stats issue + * Wed Jul 21 2021 lingsheng - 3.7-7 - Remove unnecessary buildrequire gdb