From: Vincent Fu Date: Fri, 5 Aug 2022 20:31:11 +0000 (-0700) Subject: engines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag X-Git-Tag: test-tag-2022-08-09^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d54ae2234253f8c0b1bf6fec19f974861a692825;p=fio.git engines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag 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 --- diff --git a/engines/null.c b/engines/null.c index 2df56718..68759c26 100644 --- a/engines/null.c +++ b/engines/null.c @@ -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; }