diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-11-11 09:00:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-11-11 09:09:35 -0500 |
commit | dcbcf7f775c75e7d5142fed571967a5e57e89fed (patch) | |
tree | 513e9ce1fe2233c5befc1c8b40fac298711e89bc /src | |
parent | d09b784e395554cb67ec91e70544a052fe60a276 (diff) | |
download | bfs-dcbcf7f775c75e7d5142fed571967a5e57e89fed.tar.xz |
This allows us to build against liburing as old as version 2.0, which is
apparently shipped by the latest Amazon Linux distribution.
Fixes: https://github.com/tavianator/bfs/issues/147
Diffstat (limited to 'src')
-rw-r--r-- | src/ioq.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -878,6 +878,7 @@ static int ioq_ring_init(struct ioq *ioq, struct ioq_thread *thread) { return -1; } +#if BFS_HAS_IO_URING_MAX_WORKERS // Limit the number of io_uring workers unsigned int values[] = { ioq->nthreads, // [IO_WQ_BOUND] @@ -886,6 +887,8 @@ static int ioq_ring_init(struct ioq *ioq, struct ioq_thread *thread) { io_uring_register_iowq_max_workers(&thread->ring, values); #endif +#endif // BFS_WITH_LIBURING + return 0; } |