diff --git a/env/fs_posix.cc b/env/fs_posix.cc index b8797f3a2..bf204ac96 100644 --- a/env/fs_posix.cc +++ b/env/fs_posix.cc @@ -1153,7 +1153,10 @@ class PosixFileSystem : public FileSystem { // Prepare the cancel request. struct io_uring_sqe* sqe; sqe = io_uring_get_sqe(iu); - io_uring_prep_cancel(sqe, (void*)(unsigned long)1, 0); + // prep_cancel changed API in liburing, but we need to support both old + // and new versions so do it by hand + io_uring_prep_cancel(sqe, 0, 0); + sqe->addr = reinterpret_cast(posix_handle); io_uring_sqe_set_data(sqe, posix_handle); // submit the request.