io_uring: don't submit link on error
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 18 Feb 2021 18:29:43 +0000 (18:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Feb 2021 20:13:18 +0000 (13:13 -0700)
commitcf109604265156bb22c45e0c2aa62f53a697a3f4
tree466a8dd84c4edcd1c2ab18cb68ab408038a7ab49
parenta1ab7b35db8f262cd74edff62b47b4d90f84f997
io_uring: don't submit link on error

If we get an error in io_init_req() for a request that would have been
linked, we break the submission but still issue a partially composed
link, that's nasty, fail it instead.

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