io_uring: defer iowq cqe overflow via task_work
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Mar 2025 15:32:33 +0000 (15:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Mar 2025 18:37:47 +0000 (12:37 -0600)
commit3afcb3b2e3a4ead24e3ab476576e87877d55ee22
tree9da9556fac11f6b9831634511ec7825b891b43d7
parent3f0cb8de56b9a5c052a9e43fa548856926059810
io_uring: defer iowq cqe overflow via task_work

Don't handle CQE overflows in io_req_complete_post() and defer it to
flush_completions. It cuts some duplication, and I also want to limit
the number of places directly overflowing completions.

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