From b8d07a36d0391fa4530349f92fd74d0e13d540ba Mon Sep 17 00:00:00 2001 From: Horshack Date: Thu, 9 Feb 2023 11:31:55 -0500 Subject: [PATCH] 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) --- backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.25.1