Suppress sync engine QD > 1 warning if io_submit_mode is offload
authorHorshack <horshack@live.com>
Thu, 9 Feb 2023 16:31:55 +0000 (11:31 -0500)
committerHorshack <horshack@live.com>
Thu, 9 Feb 2023 16:42:28 +0000 (11:42 -0500)
The user is warned if iodepth > 1 when using a synchronous I/O engine,
since the engine can only submit one I/O at a time. This warning is not
accounting for the case of the user enabling I/O submission offload
threads via io_submit_mode=offload. Modified the warning conditional to
suppress the warning when this is the case.

Signed-off-by: Adam Horshack (horshack@live.com)
backend.c

index 928e524a370c21abb0a6cf1a232e29525a55185b..ffd34b36ff0b6780c415644b66f11c0a0530113e 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1796,7 +1796,7 @@ static void *thread_main(void *data)
        if (td_io_init(td))
                goto err;
 
-       if (td_ioengine_flagged(td, FIO_SYNCIO) && td->o.iodepth > 1) {
+       if (td_ioengine_flagged(td, FIO_SYNCIO) && td->o.iodepth > 1 && td->o.io_submit_mode != IO_MODE_OFFLOAD) {
                log_info("note: both iodepth >= 1 and synchronous I/O engine "
                         "are selected, queue depth will be capped at 1\n");
        }