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>
Wed, 20 Apr 2022 22:21:23 +0000 (16:21 -0600)
commita95a3e51f11be2139061e1cd2ac6f83de4f7aa2a
tree7c228120db02ff5ae5dee5ce868a7f94898a14ff
parent499436e5b20aef0f7fd495a35eae09e9d0e45f8b
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