Skip to content
Commit ad8a48ac authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: make req->timeout be dynamically allocated



There are a few reasons for this:

- As a prep to improving the linked timeout logic
- io_timeout is the biggest member in the io_kiocb opcode union

This also enables a few cleanups, like unifying the timer setup between
IORING_OP_TIMEOUT and IORING_OP_LINK_TIMEOUT, and not needing multiple
arguments to the link/prep helpers.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 978db57e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment