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>
Fri, 1 Nov 2024 14:29:48 +0000 (08:29 -0600)
commitc50d111b046a09edb09c5d8ca097fcab6aaaa44c
treeeda4470b8fb315596ff409bc96704f6c312439dc
parent9b8ad06f551ab041145e928f733ac2c0ed1e1018
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