Skip to content

Commit b2c6231

Browse files
committed
Merge branch 'fix/zero-numberio' of https://github.com/minwooim/fio
* 'fix/zero-numberio' of https://github.com/minwooim/fio: backend: fix zero-numberio in dry-run
2 parents 1ad9ac9 + 466a2e6 commit b2c6231

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,11 @@ static uint64_t do_dry_run(struct thread_data *td)
17031703
io_u_set(td, io_u, IO_U_F_FLIGHT);
17041704
io_u->error = 0;
17051705
io_u->resid = 0;
1706-
if (ddir_rw(acct_ddir(io_u)))
1706+
if (ddir_rw(acct_ddir(io_u))) {
1707+
io_u->numberio = td->io_issues[acct_ddir(io_u)];
17071708
td->io_issues[acct_ddir(io_u)]++;
1709+
}
1710+
17081711
if (ddir_rw(io_u->ddir)) {
17091712
io_u_mark_depth(td, 1);
17101713
td->ts.total_io_u[io_u->ddir]++;

0 commit comments

Comments
 (0)