• Jens Axboe's avatar
    io_uring: enable IORING_SETUP_ATTACH_WQ to attach to SQPOLL thread too · aa06165d
    Jens Axboe authored
    We support using IORING_SETUP_ATTACH_WQ to share async backends between
    rings created by the same process, this now also allows the same to
    happen with SQPOLL. The setup procedure remains the same, the caller
    sets io_uring_params->wq_fd to the 'parent' context, and then the newly
    created ring will attach to that async backend.
    
    This means that multiple rings can share the same SQPOLL thread, saving
    resources.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    aa06165d
io_uring.c 228 KB