summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-14 16:29:12 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-14 16:29:12 -0500
commitb3cdf12d71798a26c1f6d46dceff7ed50b9eed83 (patch)
tree87ef8ad1b53bcb49781ab501f0becce7158dd9a4 /src
parent80fbd584adf480f62e3282d570f67767c74c13d3 (diff)
downloadbfs-b3cdf12d71798a26c1f6d46dceff7ed50b9eed83.tar.xz
ioq: Don't use the symbolic IO_WQ_[UN]BOUND indices
They are only available since liburing 2.2, which is newer than CI.
Diffstat (limited to 'src')
-rw-r--r--src/ioq.c4
1 files changed, 2 insertions, 2 deletions
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);
}