io_uring: waitqueue-less cq waiting
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Jan 2023 14:46:11 +0000 (14:46 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Jan 2023 17:25:35 +0000 (10:25 -0700)
commit65ca9dd8ce5e3de42b100f0e7d2ae360e9b8d14e
tree3d087aae3a19afa79fe502a09603ae34194b90df
parentef3ddc6ac629fc829ed6e08418e1c070332dde63
io_uring: waitqueue-less cq waiting

With DEFER_TASKRUN only ctx->submitter_task might be waiting for CQEs,
we can use this to optimise io_cqring_wait(). Replace ->cq_wait
waitqueue with waking the task directly.

It works but misses an important optimisation covered by the following
patch, so this patch without follow ups might hurt performance.

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