]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: io_fail_links() should only consider first linked timeout
authorJens Axboe <axboe@kernel.dk>
Tue, 19 Nov 2019 22:31:28 +0000 (15:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:06 +0000 (19:56 -0700)
commita7e9c5ce44b81c81369c506141b898f19d2979ca
tree0d154e59f8b7c9256fcfaf96f8436601c15ae162
parent1ec04c5e35e1088df50a39317a1871835600a28f
io_uring: io_fail_links() should only consider first linked timeout

We currently clear the linked timeout field if we cancel such a timeout,
but we should only attempt to cancel if it's the first one we see.
Others should simply be freed like other requests, as they haven't
been started yet.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c