diff options
| author | Stefan Hajnoczi | 2013-02-20 11:28:31 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2013-02-21 23:17:31 +0100 |
| commit | d0c8d2c05f67a1a007d87fa3b99254abfa42d06d (patch) | |
| tree | ada60845139760d25723bb77ba0c105b023dbd04 /include/block | |
| parent | main-loop: drop rfds/wfds/xfds for good (diff) | |
| download | qemu-d0c8d2c05f67a1a007d87fa3b99254abfa42d06d.tar.gz qemu-d0c8d2c05f67a1a007d87fa3b99254abfa42d06d.tar.xz qemu-d0c8d2c05f67a1a007d87fa3b99254abfa42d06d.zip | |
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 'include/block')
0 files changed, 0 insertions, 0 deletions
