io_uring: don't duplicate flushing in io_req_post_cqe
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Apr 2025 11:28:39 +0000 (12:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Apr 2025 12:28:43 +0000 (06:28 -0600)
commit5e16f1a68d28965c12b6fa227a306fef8a680f84
tree886c5a44e7f2e3caf30c3974ea5b0d54c854ae3e
parentf12ecf5e1c5eca48b8652e893afcdb730384a6aa
io_uring: don't duplicate flushing in io_req_post_cqe

io_req_post_cqe() sets submit_state.cq_flush so that
*flush_completions() can take care of batch commiting CQEs. Don't commit
it twice by using __io_cq_unlock_post().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/41c416660c509cee676b6cad96081274bcb459f3.1745493861.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c