Skip to content
Snippets Groups Projects
Commit 171ae9d4 authored by Florian Fischer's avatar Florian Fischer
Browse files

depend on liburing 2.2

Liburing 2.2 and Linux 5.18 support IORING_REGISTER_RING_FDS, preventing
the fget(ring_fd) overhead for each io_uring_enter call, as well as
IORING_OP_MSG_RING, greatly simplifying the IO-based sleep strategy code.
parent 4d90dfc0
No related branches found
No related tags found
1 merge request!364incorporate new io_uring features
...@@ -180,7 +180,7 @@ void CancelWrapper::prepareSqeInternal(struct io_uring_sqe* sqe) { ...@@ -180,7 +180,7 @@ void CancelWrapper::prepareSqeInternal(struct io_uring_sqe* sqe) {
if constexpr (!emper::IO_SINGLE_URING) { if constexpr (!emper::IO_SINGLE_URING) {
assert(future.submitter == IoContext::workerIo); assert(future.submitter == IoContext::workerIo);
} }
void* user_data = IoContext::createFutureTag(future); uint64_t user_data = IoContext::createFutureTag(future);
io_uring_prep_cancel(sqe, user_data, 0); io_uring_prep_cancel(sqe, user_data, 0);
} }
} // namespace emper::io } // namespace emper::io
...@@ -13,7 +13,7 @@ thread_dep = dependency('threads') ...@@ -13,7 +13,7 @@ thread_dep = dependency('threads')
conf_data = configuration_data() conf_data = configuration_data()
use_bundled_deps = get_option('use_bundled_deps') use_bundled_deps = get_option('use_bundled_deps')
liburing_version = '2.1' liburing_version = '2.2'
uring_dep = dependency('liburing', version: liburing_version, required: use_bundled_deps == 'never') uring_dep = dependency('liburing', version: liburing_version, required: use_bundled_deps == 'never')
if not uring_dep.found() or use_bundled_deps == 'always' if not uring_dep.found() or use_bundled_deps == 'always'
message('liburing ' + liburing_version + ' not found in system, using liburing subproject') message('liburing ' + liburing_version + ' not found in system, using liburing subproject')
......
[wrap-file] [wrap-git]
directory = liburing-liburing-2.1 url=https://github.com/fischerling/liburing.git
source_url = https://github.com/axboe/liburing/archive/refs/tags/liburing-2.1.tar.gz revision=7cef94c598c9137b8d98e2d361f0e6ed1e869919
source_filename = liburing-2.1.tar.gz
source_hash = f1e0500cb3934b0b61c5020c3999a973c9c93b618faff1eba75aadc95bb03e07
patch_filename = liburing_2.1-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/liburing_2.1-1/get_patch
patch_hash = aaeb2be1f5eacf4f41e0537aa02154486e0729a3395d2e832de7657ab0b56290
[provide] [provide]
uring = uring uring = uring
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment