On 24/06/2015 04:47, Fam Zheng wrote: >> > 2. Is this about thread safety? (No, it's about exclusive access to a >> > BDS *within* the AioContext.) > As it has to quiesce iothreads as well (for now it's even more urgent than > exclusive access within the same AioContext), I'd rather take it as yes.
For now it's a "no", because there are no races between threads: the main thread has acquired the AioContext and cut away the iothread. However, as we move towards fine-grained AioContext critical sections, it will become a "yes". Paolo