diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-10-16 01:48:15 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-29 19:22:48 +0300 |
commit | a41525ab2e75987e809926352ebc6f1397da900e (patch) | |
tree | a4f80ed1e7b9705abd0c458f73f6dc1063cad1f3 /include/uapi | |
parent | ba5290ccb6b57fc5e274ae46d051fba1f0ece262 (diff) | |
download | linux-a41525ab2e75987e809926352ebc6f1397da900e.tar.xz |
io_uring: add support for absolute timeouts
This is a pretty trivial addition on top of the relative timeouts
we have now, but it's handy for ensuring tighter timing for those
that are building scheduling primitives on top of io_uring.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/io_uring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index e0137ea6ad79..b402dfee5e15 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -71,6 +71,11 @@ struct io_uring_sqe { #define IORING_FSYNC_DATASYNC (1U << 0) /* + * sqe->timeout_flags + */ +#define IORING_TIMEOUT_ABS (1U << 0) + +/* * IO completion data structure (Completion Queue Entry) */ struct io_uring_cqe { |