]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/msg_ring: improve handling of target CQE posting
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2024 17:00:21 +0000 (11:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Jun 2024 14:39:50 +0000 (08:39 -0600)
commit0617bb500bfabf8447062f1e1edde92ed2b638f1
treee57d8eeb4afcdb5e62325753516fefe5c66e001a
parentf33096a3c99c0149be49fe1e107244a7ed860ecb
io_uring/msg_ring: improve handling of target CQE posting

Use the exported helper for queueing task_work for message passing,
rather than rolling our own.

Note that this is only done for strict data messages for now, file
descriptor passing messages still rely on the kernel task_work. It could
get converted at some point if it's performance critical.

This improves peak performance of message passing by about 5x in some
basic testing, with 2 threads just sending messages to each other.
Before this change, it was capped at around 700K/sec, with the change
it's at over 4M/sec.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/msg_ring.c