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, 17 Jun 2024 21:10:55 +0000 (15:10 -0600)
commite78c6e16b360bf9aa7fcc09b498412c844be0048
tree1522f06b22bdb3b7746663b43438072d223a7adc
parentcf8fa0514dd78d703f4d009b93e15966f7dbe3d8
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