Fix the failure related to io_uring_prep_cancel (#10165)

Summary:
Fix for Internal jobs are failing with
```
 error: no matching function for call to 'io_uring_prep_cancel'
      io_uring_prep_cancel(sqe, posix_handle, 0);
      ^~~~~~~~~~~~~~~~~~~~
note: candidate function not viable: no known conversion from 'rocksdb::Posix_IOHandle *' to '__u64' (aka 'unsigned long long') for 2nd argument
static inline void io_uring_prep_cancel(struct io_uring_sqe *sqe,
```

User data is set using `io_uring_set_data` API so no need to pass posix_handle here.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10165

Test Plan: CircleCI jobs

Reviewed By: jay-zhuang

Differential Revision: D37145233

Pulled By: akankshamahajan15

fbshipit-source-id: 05da650e1240e9c6fcc8aed5f0067308dccb164a
main
Akanksha Mahajan 3 years ago committed by Facebook GitHub Bot
parent f105e1a501
commit 40d19bc12c
  1. 2
      env/fs_posix.cc

2
env/fs_posix.cc vendored

@ -1153,7 +1153,7 @@ class PosixFileSystem : public FileSystem {
// Prepare the cancel request. // Prepare the cancel request.
struct io_uring_sqe* sqe; struct io_uring_sqe* sqe;
sqe = io_uring_get_sqe(iu); sqe = io_uring_get_sqe(iu);
io_uring_prep_cancel(sqe, posix_handle, 0); io_uring_prep_cancel(sqe, (void*)(unsigned long)1, 0);
io_uring_sqe_set_data(sqe, posix_handle); io_uring_sqe_set_data(sqe, posix_handle);
// submit the request. // submit the request.

Loading…
Cancel
Save