]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25a738451235f83bc37549c91fa69addba082883
treeb84c673589753cab7aa392ad366701545490ba5b
parent760294ab2becfa0e9a3469911d6bc82d0891f25d
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