]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove timeout.list after hrtimer cancel
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:11 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:25 +0000 (12:49 -0600)
commit319b415d502400107cc7a2a36d545bb3eed2eddd
tree578a4ddec84bdb7fbd6c820444539451899bec2c
parent886e6217d68542ad161ea2704ae4c85d1293c20f
io_uring: remove timeout.list after hrtimer cancel

Remove timeouts from ctx->timeout_list after hrtimer_try_to_cancel()
successfully cancels it. With this we don't need to care whether there
was a race and it was removed in io_timeout_fn(), and that will be handy
for following patches.

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