io_uring: don't defer put of cancelled ltimeout
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 22 Oct 2020 15:43:11 +0000 (16:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Oct 2020 19:07:11 +0000 (13:07 -0600)
commitc9abd7ad832b9eef06d887f4971894af5de617fd
tree37500f1fa493564cee31b9a8d0033448b81a1419
parentcdfcc3ee04599ce51e5c84432c177163637dd0e0
io_uring: don't defer put of cancelled ltimeout

Inline io_link_cancel_timeout() and __io_kill_linked_timeout() into
io_kill_linked_timeout(). That allows to easily move a put of a cancelled
linked timeout out of completion_lock and to not deferring it. It is also
much more readable when not scattered across three different functions.

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