io_uring: refactor lazy link fail
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Apr 2022 21:08:30 +0000 (22:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:02:49 +0000 (18:02 -0600)
commitdf3becde8d9dcaaf17a615009301479f8f9c6323
treec8c544ef4ebb2cf61651a21ee3c9479f00cf1333
parentda1a08c5b28176398773de30a056ba7b994e6988
io_uring: refactor lazy link fail

Remove the lazy link fail logic from io_submit_sqe() and hide it into a
helper. It simplifies the code and will be needed in next patches.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6a68aca9cf4492132da1d7c8a09068b74aba3c65.1650056133.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c