OSDN Git Service

io_uring: add req->timeout.list
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jul 2020 20:37:12 +0000 (23:37 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:45 +0000 (12:55 -0600)
commit135fcde8496b03d31648171dbc038990112e41d5
tree0986922e14a90eb571149e8c4e524e2fcee65717
parent40d8ddd4facb80760d5a0c61a7cf026d5ff73ff0
io_uring: add req->timeout.list

Instead of using shared req->list, hang timeouts up on their own list
entry. struct io_timeout have enough extra space for it, but if that
will be a problem ->inflight_entry can reused for that.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c