[PATCH v2 4/4] aio-posix: enable IORING_SETUP_NO_SQARRAY

Stefan Hajnoczi posted 4 patches 1 month, 2 weeks ago
Maintainers: Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>
[PATCH v2 4/4] aio-posix: enable IORING_SETUP_NO_SQARRAY
Posted by Stefan Hajnoczi 1 month, 2 weeks ago
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 <stefanha@redhat.com>
---
 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