td_io_queue() needs to differentiate between the sync and async
engines wrt setting issue_time.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
{
int ret;
+ if (td->io_ops->flags & FIO_SYNCIO)
+ fio_gettime(&io_u->issue_time, NULL);
if (io_u->ddir != DDIR_SYNC)
td->io_issues[io_u->ddir]++;
ret = td->io_ops->queue(td, io_u);
- fio_gettime(&io_u->issue_time, NULL);
+
+ if ((td->io_ops->flags & FIO_SYNCIO) == 0)
+ fio_gettime(&io_u->issue_time, NULL);
+
return ret;
}