]> git.ipfire.org Git - thirdparty/linux.git/commit
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, 25 Aug 2024 14:27:01 +0000 (08:27 -0600)
commitd29cb3726f03cdac7889f0109a7cb84f79e168a8
treeb27c1a35a6022862e48801b7a75908c70be7c260
parentd5cce407e4f59b2e08d03e29d2b3c55deacc1d48
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