io_uring: put link timeout req consistently
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:59 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commitdf9727affa058f4f18e388b30247650f8ae13cd8
tree107c5a4dea2d0d7af8bf12aee6da072a73629fff
parentc4ea060e85eabe40f3572969daff4fc2f242b7b8
io_uring: put link timeout req consistently

Don't put linked timeout req in io_async_find_and_cancel() but do it in
io_link_timeout_fn(), so we have only one point for that and won't have
to do it differently as it's now (put vs put_deferred). Btw, improve a
bit io_async_find_and_cancel()'s locking.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d75b70957f245275ab7cba83e0ac9c1b86aae78a.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c