Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jun 12

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit bd11387aba55e9dc58c0127437c8c6982e6ac32f:

ci: skip new write uncorrectable tests on QEMU (2026-06-10 22:28:50 +0000)

are available in the Git repository at:

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

for you to fetch changes up to d8380abcb6756d7356961ac496904acc12181bf7:

Merge branch 'fix/trim-with-do-verify-0' of https://github.com/minwooim/fio (2026-06-10 20:31:50 -0400)

----------------------------------------------------------------
Minwoo Im (1):
backend: log trim @io_u to io_hist even do_verify=0

Vincent Fu (1):
Merge branch 'fix/trim-with-do-verify-0' of https://github.com/minwooim/fio

 backend.c        | 15 +++++++++++++--
 t/verify-trim.py | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 66 insertions(+), 3 deletions(-)

---

Diff of recent changes:

backend.c +13 -2
index 8ff3bc12..7f41bdfa 100644
@@ -1315,9 +1315,14 @@ static void do_io(struct thread_data *td, uint64_t *bytes_done)
 		 * Always log IO before it's issued, so we know the specific
 		 * order of it. The logged unit will track when the IO has
 		 * completed.
+		 *
+		 * Trim command is determined by @io_u loggged in the @io_hist
+		 * based on the percentage of the given value to
+		 * --trim_percentage=<%>.  Log @io_u for trim command even in
+		 * --do_verify=0 case.
 		 */
 		if (td_write(td) && io_u->ddir == DDIR_WRITE &&
-		    td->o.do_verify &&
+		    (td->o.do_verify || td->trim_verify) &&
 		    td->o.verify != VERIFY_NONE &&
 		    !td->o.experimental_verify)
 			log_io_piece(td, io_u);
@@ -1911,8 +1916,14 @@ static uint64_t do_dry_run(struct thread_data *td)
 			td->ts.total_io_u[io_u->ddir]++;
 		}
 
+		/*
+		 * Trim command is determined by @io_u loggged in the @io_hist
+		 * based on the percentage of the given value to
+		 * --trim_percentage=<%>.  Log @io_u for trim command even in
+		 * --do_verify=0 case.
+		 */
 		if (td_write(td) && io_u->ddir == DDIR_WRITE &&
-		    td->o.do_verify &&
+		    (td->o.do_verify || td->trim_verify) &&
 		    td->o.verify != VERIFY_NONE &&
 		    !td->o.experimental_verify) {
 			if (!verify_state_should_skip(td, io_u->numberio))
t/verify-trim.py +53 -1

66 lines not on this page · raw message