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: > > * aio_poll() checks !node->deleted to avoid calling handlers that have > been deleted.
This is actually an unrelated bugfix, isn't it? > > * Fix typo 'then' -> 'them' in aio_poll() comment. > > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > aio-posix.c | 57 +++++++++++++++++++++++++++++++++++---------------------- > 1 file changed, 35 insertions(+), 22 deletions(-) Reviewed-by: Laszlo Ersek <ler...@redhat.com>