]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: add remote task_work execution helper
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2024 18:38:44 +0000 (12:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Jun 2024 14:39:39 +0000 (08:39 -0600)
commitc3ac76f9ca7a621428851149bc56bfca0aacaef4
tree1d10e888424ed968ba9a63703fa75c1c25e18467
parentd57afd8bb7f2c4f0d86e9e9b276f7c3a7fedfc6d
io_uring: add remote task_work execution helper

All our task_work handling is targeted at the state in the io_kiocb
itself, which is what it is being used for. However, MSG_RING rolls its
own task_work handling, ignoring how that is usually done.

In preparation for switching MSG_RING to be able to use the normal
task_work handling, add io_req_task_work_add_remote() which allows the
caller to pass in the target io_ring_ctx.

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