Recent changes (master)

Jens Axboe <[email protected]> Tue, 9 Dec 2025 06:00:02 -0700
Newsgroups org.kernel.vger.fio
Message-ID <[email protected]>
The following changes since commit de3d5e68dd017a6d6099913b7831bb94f46e49cc:

  Merge branch 'mmap-fixes' of https://github.com/geertj/fio (2025-11-24 06:50:27 -0700)

are available in the Git repository at:

  git://git.kernel.dk/fio.git master

for you to fetch changes up to 26c77cd375fc48511fda408e924416746ea878af:

  Merge branch 'patch-1' of https://github.com/fmayer/fio (2025-12-08 19:06:30 -0700)

----------------------------------------------------------------
Florian Mayer (1):
      backend: fix OOB access in usec_for_io() with DDIR_SYNC

Jens Axboe (1):
      Merge branch 'patch-1' of https://github.com/fmayer/fio

 backend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

Diff of recent changes:

diff --git a/backend.c b/backend.c
index e09c210a..13c77552 100644
--- a/backend.c
+++ b/backend.c
@@ -1194,7 +1194,7 @@ static void do_io(struct thread_data *td, uint64_t *bytes_done)
 				td->rate_io_issue_bytes[__ddir] += blen;
 			}
 
-			if (should_check_rate(td)) {
+			if (ddir_rw(__ddir) && should_check_rate(td)) {
 				td->rate_next_io_time[__ddir] = usec_for_io(td, __ddir);
 				fio_gettime(&comp_time, NULL);
 			}
@@ -1202,7 +1202,7 @@ static void do_io(struct thread_data *td, uint64_t *bytes_done)
 		} else {
 			ret = io_u_submit(td, io_u);
 
-			if (should_check_rate(td))
+			if (ddir_rw(ddir) && should_check_rate(td))
 				td->rate_next_io_time[ddir] = usec_for_io(td, ddir);
 
 			if (io_queue_event(td, io_u, &ret, ddir, &bytes_issued, 0, &comp_time))