]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: read 'count' for IORING_OP_TIMEOUT in prep handler
authorJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 16:02:01 +0000 (09:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 16:55:33 +0000 (09:55 -0700)
commit8ea3ae13c92d94b693c60983ca195e5ffbbbff65
tree1c658228b395dab22415606a826f9c56567c6be4
parent10d7aca1dc088794752bf5ba4655c712021e85a1
io_uring: read 'count' for IORING_OP_TIMEOUT in prep handler

Add the count field to struct io_timeout, and ensure the prep handler
has read it. Timeout also needs an async context always, set it up
in the prep handler if we don't have one.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c