Indicate 'V' verify state always
We only print 'V' for a thread if it does a verify run after a write,
however fio can be invoked for a later verify using a different job file.
So check in do_io() as well and set verify state if appropriate.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index de6132c..6a72ce7 100644
--- a/fio.c
+++ b/fio.c
@@ -61,6 +61,9 @@
static inline void td_set_runstate(struct thread_data *td, int runstate)
{
+ if (td->runstate == runstate)
+ return;
+
dprint(FD_PROCESS, "pid=%d: runstate %d -> %d\n", td->pid, td->runstate,
runstate);
td->runstate = runstate;
@@ -461,8 +464,11 @@
* Add verification end_io handler, if asked to verify
* a previously written file.
*/
- if (td->o.verify != VERIFY_NONE)
+ if (td->o.verify != VERIFY_NONE) {
io_u->end_io = verify_io_u;
+ td_set_runstate(td, TD_VERIFYING);
+ } else
+ td_set_runstate(td, TD_RUNNING);
ret = td_io_queue(td, io_u);
switch (ret) {