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)
commitd4c81f38522f3e7f4be1b472ef9988d0ed7f3696
tree4eeb0887d4baa7153abf0f0342bccfff4dd5e3ca
parentac45abc0e2a8ed16ecc0eea039fe762ddfefbcad
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