OSDN Git Service

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)
commit26a61679f10c6f041726411964b172565021c2eb
tree1c658228b395dab22415606a826f9c56567c6be4
parente47293fdf98998292a89d516c8f7b8b9eb5c5213
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