On 3/11/21 5:02 AM, Stefan Metzmacher wrote: > Or we completely ignore IORING_SETUP_ATTACH_WQ (execpt the error > cases). > > Then we can implement a new IORING_SETUP_ATTACH_SQ with new semantics, > that the existing sq_thread will be used as it and both sides now what > it means to them. We also add a new > IORING_REGISTER_RESTRICTIONS/IORING_RESTRICTION_ALLOW_SQ_ATTACHMENTS > which prepares the first io_ring_ctx to allow others to attach. > > Would that make sense? I think we should retain ATTACH_WQ semantics with SQPOLL for the cases that are possible. That would not exclude doing a more specific ATTACH_SQ for the new case. And maybe those two cases can then be folded down the line. -- Jens Axboe