]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't arm a timeout through work.func
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 8 Jun 2020 18:08:19 +0000 (21:08 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Jun 2020 19:47:37 +0000 (13:47 -0600)
commit349fc39a88f29e24c801d5ba4e7a767a15941f53
tree4eeb0887d4baa7153abf0f0342bccfff4dd5e3ca
parent5c2418bbf3804affc03d48362b67ba033236d619
io_uring: don't arm a timeout through work.func

Remove io_link_work_cb() -- the last custom work.func.
Not the prettiest thing, but works. Instead of queueing a linked timeout
in io_link_work_cb() mark a request with REQ_F_QUEUE_TIMEOUT and do
enqueueing based on the flag in io_wq_submit_work().

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