diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-10-16 00:48:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-29 17:22:48 +0100 |
commit | a41525ab2e75987e809926352ebc6f1397da900e (patch) | |
tree | a4f80ed1e7b9705abd0c458f73f6dc1063cad1f3 /include | |
parent | io_uring: replace s->needs_lock with s->in_async (diff) | |
download | linux-a41525ab2e75987e809926352ebc6f1397da900e.tar.xz linux-a41525ab2e75987e809926352ebc6f1397da900e.zip |
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')
-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 { |