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, 18 Apr 2022 01:23:58 +0000 (19:23 -0600)
commit0e2aeac59ae13b868836072f6840e0993c8991d3
treec2a0d17774d0ab9d61ee4f96d3deafe685246575
parentba0a753a0b63739fc7d53f9cab0f71b22c2afd92
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