From b3cdf12d71798a26c1f6d46dceff7ed50b9eed83 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 14 Feb 2024 16:29:12 -0500 Subject: ioq: Don't use the symbolic IO_WQ_[UN]BOUND indices They are only available since liburing 2.2, which is newer than CI. --- src/ioq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ioq.c b/src/ioq.c index 3c26814..0936adf 100644 --- a/src/ioq.c +++ b/src/ioq.c @@ -742,8 +742,8 @@ static int ioq_ring_init(struct ioq *ioq, struct ioq_thread *thread) { if (!prev) { // Limit the number of io_uring workers unsigned int values[] = { - [IO_WQ_BOUND] = ioq->nthreads, - [IO_WQ_UNBOUND] = 0, + ioq->nthreads, // [IO_WQ_BOUND] + 0, // [IO_WQ_UNBOUND] }; io_uring_register_iowq_max_workers(&thread->ring, values); } -- cgit v1.2.3