summaryrefslogtreecommitdiff
path: root/io_uring/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'io_uring/query.c')
-rw-r--r--io_uring/query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/query.c b/io_uring/query.c
index 645301bd2c82..cf02893ba911 100644
--- a/io_uring/query.c
+++ b/io_uring/query.c
@@ -20,6 +20,8 @@ static ssize_t io_query_ops(void *data)
e->ring_setup_flags = IORING_SETUP_FLAGS;
e->enter_flags = IORING_ENTER_FLAGS;
e->sqe_flags = SQE_VALID_FLAGS;
+ e->nr_query_opcodes = __IO_URING_QUERY_MAX;
+ e->__pad = 0;
return sizeof(*e);
}