io_uring: add helper of io_req_commit_cqe()
authorMing Lei <ming.lei@redhat.com>
Fri, 25 Oct 2024 12:22:40 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Nov 2024 21:45:30 +0000 (15:45 -0600)
commit57e63b1f9ceb6b5aae659ee6def8b7e2f9014db7
tree3c73d57a55e2e9ce818be251eaa442515931f28d
parentce94d6ff767da63591404a571e7330ab3163c7ce
io_uring: add helper of io_req_commit_cqe()

Add helper of io_req_commit_cqe() for simplifying
__io_submit_flush_completions() a bit.

No functional change, and the added helper will be reused in sqe group
code with same lock rule.

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