Skip to content
Snippets Groups Projects
Commit ea97f6c8 authored by David Wei's avatar David Wei Committed by Jens Axboe
Browse files

io_uring: add support for multishot timeouts


A multishot timeout submission will repeatedly generate completions with
the IORING_CQE_F_MORE cflag set. Depending on the value of the `off'
field in the submission, these timeouts can either repeat indefinitely
until cancelled (`off' = 0) or for a fixed number of times (`off' > 0).

Only noseq timeouts (i.e. not dependent on the number of I/O
completions) are supported.

An indefinite timer will be cancelled if the CQ ever overflows.

Signed-off-by: default avatarDavid Wei <davidhwei@meta.com>
Link: https://lore.kernel.org/r/20230418225817.1905027-1-davidhwei@meta.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2236b390
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment