Recent changes (master)

Jens Axboe <[email protected]> Thu, 6 Nov 2025 06:00:01 -0700
Newsgroups org.kernel.vger.fio
Message-ID <[email protected]>
The following changes since commit 9f87cd24973b122a8c8eda9bfbcee81edcac5112:

  engines/ftruncate: update git tree reference (2025-10-31 14:53:05 -0600)

are available in the Git repository at:

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

for you to fetch changes up to f5b2f2366bc2a05876fcf6044e18098ab2a7f343:

  Merge branch 'end-fsync-io_u' of https://github.com/JeongJonghwi/fio (2025-11-05 18:33:39 -0500)

----------------------------------------------------------------
Jonghwi Jeong (1):
      io_u: put io_u->file from requeue in FSYNCING

Vincent Fu (1):
      Merge branch 'end-fsync-io_u' of https://github.com/JeongJonghwi/fio

 io_u.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

---

Diff of recent changes:

diff --git a/io_u.c b/io_u.c
index ab1bf7c9..ec3f668c 100644
--- a/io_u.c
+++ b/io_u.c
@@ -1727,9 +1727,13 @@ struct io_u *__get_io_u(struct thread_data *td)
 		__td_io_u_lock(td);
 
 again:
-	if (td->runstate != TD_FSYNCING && !io_u_rempty(&td->io_u_requeues)) {
+	if (!io_u_rempty(&td->io_u_requeues)) {
 		io_u = io_u_rpop(&td->io_u_requeues);
 		io_u->resid = 0;
+		if (io_u->file && td->runstate == TD_FSYNCING) {
+			put_file_log(td, io_u->file);
+			io_u->file = NULL;
+		}
 	} else if (!queue_full(td)) {
 		io_u = io_u_qpop(&td->io_u_freelist);