io_uring: add absolute mode wait timeouts
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Aug 2024 14:18:13 +0000 (15:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Aug 2024 20:40:21 +0000 (14:40 -0600)
commit4188e91b04552e9a9c4634b3140ceea590e66a6b
treec202809244cb8055a3ab7d09ce286466da30e9c6
parent262580d3d7948a4d4c3b19c3630c861caeb8ba56
io_uring: add absolute mode wait timeouts

In addition to current relative timeouts for the waiting loop, where the
timespec argument specifies the maximum time it can wait for, add
support for the absolute mode, with the value carrying a CLOCK_MONOTONIC
absolute time until which we should return control back to the user.

Suggested-by: Lewis Baker <lewissbaker@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4d5b74d67ada882590b2e42aa3aa7117bbf6b55f.1723039801.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/io_uring.c