Re: [Qemu-devel] [PATCH v3 08/10] aio: extract aio_dispatch() from aio_poll()

2013-02-07 Thread Stefan Hajnoczi
On Wed, Feb 06, 2013 at 07:24:42PM +0100, Laszlo Ersek wrote: > On 02/04/13 13:12, Stefan Hajnoczi wrote: > > We will need to loop over AioHandlers calling ->io_read()/->io_write() > > when aio_poll() is converted from select(2) to g_poll(2). > > > > Luckily the code for this already exists, extra

Re: [Qemu-devel] [PATCH v3 08/10] aio: extract aio_dispatch() from aio_poll()

2013-02-06 Thread Laszlo Ersek
On 02/04/13 13:12, Stefan Hajnoczi wrote: > We will need to loop over AioHandlers calling ->io_read()/->io_write() > when aio_poll() is converted from select(2) to g_poll(2). > > Luckily the code for this already exists, extract it into the new > aio_dispatch() function. > > Two small changes: >

[Qemu-devel] [PATCH v3 08/10] aio: extract aio_dispatch() from aio_poll()

2013-02-04 Thread Stefan Hajnoczi
We will need to loop over AioHandlers calling ->io_read()/->io_write() when aio_poll() is converted from select(2) to g_poll(2). Luckily the code for this already exists, extract it into the new aio_dispatch() function. Two small changes: * aio_poll() checks !node->deleted to avoid calling hand