diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-02-20 11:28:31 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-21 16:17:31 -0600 |
commit | d0c8d2c05f67a1a007d87fa3b99254abfa42d06d (patch) | |
tree | ada60845139760d25723bb77ba0c105b023dbd04 /async.c | |
parent | 9cbaacf999b01b27dc3a22502705178057af66de (diff) |
aio: extract aio_dispatch() from aio_poll()
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.
* Fix typo 'then' -> 'them' in aio_poll() comment.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 1361356113-11049-9-git-send-email-stefanha@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'async.c')
0 files changed, 0 insertions, 0 deletions