Skip to content
Commit aa06165d authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: enable IORING_SETUP_ATTACH_WQ to attach to SQPOLL thread too



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>
parent 69fb2131
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment