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)
commit5d960724b0cb0d12469d1c62912e4a8c09c9fd92
tree0d154e59f8b7c9256fcfaf96f8436601c15ae162
parent09fbb0a83ec6ab5a4037766261c031151985fff6
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