commit | 2572b37a4751cc967582d7d04f21d9bf97187ae5 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Thu May 08 16:34:34 2014 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Wed Jun 04 09:56:11 2014 +0200 |
tree | 49141c23aaca748c5f16f8b39c45ea714ced38ce | |
parent | 924fe1293c3e7a3c787bbdfb351e7f168caee3e9 [diff] |
block: use BlockDriverState AioContext Drop the assumption that we're using the main AioContext. Convert qemu_aio_wait() to aio_poll() and qemu_bh_new() to aio_bh_new() so the BlockDriverState AioContext is used. Note there is still one qemu_aio_wait() left in bdrv_create() but we do not have a BlockDriverState there and only main loop code invokes this function. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>