block: use BlockDriverState AioContext
commit2572b37a4751cc967582d7d04f21d9bf97187ae5
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:34 +0000 (8 16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (4 09:56 +0200)
tree49141c23aaca748c5f16f8b39c45ea714ced38ce
parent924fe1293c3e7a3c787bbdfb351e7f168caee3e9
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>
block.c