From d54ae2234253f8c0b1bf6fec19f974861a692825 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Fri, 5 Aug 2022 13:31:11 -0700 Subject: [PATCH] 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 --- engines/null.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.25.1