diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-10-16 18:08:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-29 19:22:50 +0300 |
commit | 11365043e5271fea4c92189a976833da477a3a44 (patch) | |
tree | a96e04551570765be2d332cd8d102b8f3f69346a /include/uapi/linux/io_uring.h | |
parent | a41525ab2e75987e809926352ebc6f1397da900e (diff) | |
download | linux-11365043e5271fea4c92189a976833da477a3a44.tar.xz |
io_uring: add support for canceling timeout requests
We might have cases where the need for a specific timeout is gone, add
support for canceling an existing timeout operation. This works like the
POLL_REMOVE command, where the application passes in the user_data of
the timeout it wishes to cancel in the sqe->addr field.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r-- | include/uapi/linux/io_uring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index b402dfee5e15..6dc5ced1c37a 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -64,6 +64,7 @@ struct io_uring_sqe { #define IORING_OP_SENDMSG 9 #define IORING_OP_RECVMSG 10 #define IORING_OP_TIMEOUT 11 +#define IORING_OP_TIMEOUT_REMOVE 12 /* * sqe->fsync_flags |