diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-23 18:36:43 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-07-17 18:05:48 +0200 |
commit | d7b8b079a8f6bc007d06d9ee468659dae6053e13 (patch) | |
tree | 7d88ae7a599105768622657c396ca7ccb6d5ace6 /io_uring/cancel.h | |
parent | io_uring/cancel: add IORING_ASYNC_CANCEL_USERDATA (diff) | |
download | linux-d7b8b079a8f6bc007d06d9ee468659dae6053e13.tar.xz linux-d7b8b079a8f6bc007d06d9ee468659dae6053e13.zip |
io_uring/cancel: support opcode based lookup and cancelation
Add IORING_ASYNC_CANCEL_OP flag for cancelation, which allows the
application to target cancelation based on the opcode of the original
request.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/cancel.h')
-rw-r--r-- | io_uring/cancel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/cancel.h b/io_uring/cancel.h index 496ce4dac78e..fc98622e6166 100644 --- a/io_uring/cancel.h +++ b/io_uring/cancel.h @@ -8,11 +8,11 @@ struct io_cancel_data { u64 data; struct file *file; }; + u8 opcode; u32 flags; int seq; }; - int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags); |