summaryrefslogtreecommitdiff
path: root/io_uring/cancel.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-06-23 10:36:43 -0600
committerJens Axboe <axboe@kernel.dk>2023-07-17 10:05:48 -0600
commitd7b8b079a8f6bc007d06d9ee468659dae6053e13 (patch)
tree7d88ae7a599105768622657c396ca7ccb6d5ace6 /io_uring/cancel.h
parent8165b566049b14152873011ea540eb22eae5111d (diff)
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.h2
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);