io_uring: add io_submit_fail_link() helper
authorMing Lei <ming.lei@redhat.com>
Fri, 25 Oct 2024 12:22:39 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Nov 2024 21:45:30 +0000 (15:45 -0600)
commitce94d6ff767da63591404a571e7330ab3163c7ce
tree6bc9d8b76bda0a03d34d0dd0b9c697aa1fd53c99
parentc43b29764d14c6d86ea287d3b608fb5d68337f04
io_uring: add io_submit_fail_link() helper

Add io_submit_fail_link() helper and put linking fail logic into this
helper.

This way simplifies io_submit_fail_init(), and becomes easier to add
sqe group failing logic.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241025122247.3709133-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c