This simplifies SQ ring processing and saves CPU cycles. A big
improvement is not expected, but it doesn't hurt to enable this flag.

Signed-off-by: Stefan Hajnoczi <[email protected]>
---
 util/fdmon-io_uring.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/util/fdmon-io_uring.c b/util/fdmon-io_uring.c
index 2e2c0e6785..99c4932937 100644
--- a/util/fdmon-io_uring.c
+++ b/util/fdmon-io_uring.c
@@ -469,6 +469,9 @@ bool fdmon_io_uring_setup(AioContext *ctx, Error **errp)
 #endif
 #ifdef IORING_SETUP_TASKRUN_FLAG
         IORING_SETUP_TASKRUN_FLAG |
+#endif
+#ifdef IORING_SETUP_NO_SQARRAY
+        IORING_SETUP_NO_SQARRAY |
 #endif
         0;
     int ret;
-- 
2.53.0


Reply via email to