engines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag
authorVincent Fu <vincent.fu@samsung.com>
Fri, 5 Aug 2022 20:31:11 +0000 (13:31 -0700)
committerVincent Fu <vincentfu@gmail.com>
Sun, 7 Aug 2022 16:26:09 +0000 (12:26 -0400)
Add a flag to prevent td_io_queue from setting issue_time since this
ioengine already does it in its commit function when iodepth > 1.

We also need to make sure the changes to the ioengine flags are
propogated to td->flags.

Fixes: 56b6bc25 ("engines/null: fill issue_time during commit")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/null.c

index 2df567187d21747cb43886d1870a3baca9c38995..68759c26f1096e98d062ff178e7a88458eac8f5c 100644 (file)
@@ -113,9 +113,11 @@ static struct null_data *null_init(struct thread_data *td)
        if (td->o.iodepth != 1) {
                nd->io_us = (struct io_u **) malloc(td->o.iodepth * sizeof(struct io_u *));
                memset(nd->io_us, 0, td->o.iodepth * sizeof(struct io_u *));
+               td->io_ops->flags |= FIO_ASYNCIO_SETS_ISSUE_TIME;
        } else
                td->io_ops->flags |= FIO_SYNCIO;
 
+       td_set_ioengine_flags(td);
        return nd;
 }