Read stats for backlog verifies not reported for time-expired workloads
authorHorshack <horshack@live.com>
Fri, 10 Feb 2023 02:47:38 +0000 (21:47 -0500)
committerHorshack <horshack@live.com>
Tue, 14 Feb 2023 14:36:29 +0000 (09:36 -0500)
commit615c794cbf851c994e94fffe8b8f565e64f137a5
tree109a5b4788aed0827b2e7b4d9ed7b627f8a643d8
parent0f85dc841d9220f3a0b45d0b104d5277ea962199
Read stats for backlog verifies not reported for time-expired workloads

When verify_backlog is used on a write-only workload with a runtime= value
and the runtime expires before the workload has written its full dataset,
the read stats for the backlog verifies are not reported, resulting in a
stat result showing only the workload writes (ie, the "read:" results
section is completely missing from fio's stats output)

The logic in thread_main() fails to call update_runtime() for DDIR_READ
because the existing call to update_runtime() for DDIR_READ on write-only
workloads is currently only done after do_verify() is complete, which wont
be called in this scenario because td->terminate is true due to the
expiration of the runtime.

Link: https://github.com/axboe/fio/issues/1515
Signed-off-by: Adam Horshack (horshack@live.com)
backend.c