]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: make req->timeout be dynamically allocated
authorJens Axboe <axboe@kernel.dk>
Fri, 15 Nov 2019 15:49:11 +0000 (08:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:01 +0000 (19:56 -0700)
commitad8a48acc23cb13cbf4332ebabb867b1baa81842
treeb84c673589753cab7aa392ad366701545490ba5b
parent978db57e2c329fc612ff669cab9bf0007efd3ca3
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: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c