From: Horshack Date: Thu, 9 Feb 2023 16:31:55 +0000 (-0500) Subject: Suppress sync engine QD > 1 warning if io_submit_mode is offload X-Git-Tag: fio-3.34~34^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b8d07a36d0391fa4530349f92fd74d0e13d540ba Suppress sync engine QD > 1 warning if io_submit_mode is offload 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) --- diff --git a/backend.c b/backend.c index 928e524a..ffd34b36 100644 --- 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"); }