• Jens Axboe's avatar
    io_uring: add remote task_work execution helper · c3ac76f9
    Jens Axboe authored
    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: default avatarJens Axboe <axboe@kernel.dk>
    c3ac76f9
io_uring.h 12.6 KB