Skip to content

Commit

Permalink
Merge branch 'Read_Stats_Not_Reported_For_Timed_Backlog_Verifies' of …
Browse files Browse the repository at this point in the history
…github.com:horshack-dpreview/fio

* 'Read_Stats_Not_Reported_For_Timed_Backlog_Verifies' of github.com:horshack-dpreview/fio:
  Read stats for backlog verifies not reported for time-expired workloads
  • Loading branch information
vincentkfu committed Feb 15, 2023
2 parents 1bd16cf + 615c794 commit ded6cce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,8 @@ static void *thread_main(void *data)
}
} while (1);

if (td_read(td) && td->io_bytes[DDIR_READ])
if (td->io_bytes[DDIR_READ] && (td_read(td) ||
((td->flags & TD_F_VER_BACKLOG) && td_write(td))))
update_runtime(td, elapsed_us, DDIR_READ);
if (td_write(td) && td->io_bytes[DDIR_WRITE])
update_runtime(td, elapsed_us, DDIR_WRITE);
Expand Down

0 comments on commit ded6cce

Please sign in to comment.