io_uring: fail links when poll fails
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 21 Jun 2022 23:00:35 +0000 (00:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jun 2022 23:24:37 +0000 (17:24 -0600)
commitc487a5ad48831afa6784b368ec40d0ee50f2fe1b
tree4092f9a8e46c456e44657dc5bde50f5b551c05ff
parentaacf2f9f382c91df73f33317e28a4c34c8038986
io_uring: fail links when poll fails

Don't forget to cancel all linked requests of poll request when
__io_arm_poll_handler() failed.

Fixes: aa43477b04025 ("io_uring: poll rework")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a78aad962460f9fdfe4aa4c0b62425c88f9415bc.1655852245.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c