Re: [Qemu-devel] [PATCH v2 0/5] iothread: create gcontext unconditionally

2019-03-08 Thread Stefan Hajnoczi
On Wed, Mar 06, 2019 at 07:55:27PM +0800, Peter Xu wrote: > v2: > - add comment in patch 4 > - add another patch to comment why we need explicit aio_poll() in > iothread_run loop > > When I first read the iothread code, the gcontext confused me for > quite a while. Meanwhile, I've been tackling

[Qemu-devel] [PATCH v2 0/5] iothread: create gcontext unconditionally

2019-03-06 Thread Peter Xu
v2: - add comment in patch 4 - add another patch to comment why we need explicit aio_poll() in iothread_run loop When I first read the iothread code, the gcontext confused me for quite a while. Meanwhile, I've been tackling with some races due to this complexity as well. How much we'll pay for