]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed.c
qed: use BlockDriverState's AioContext
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:45 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commita8c868c386d4cbdd0fc0a9423c6683880f6e75e4
tree37c6cee66dab4c5268fc44b9d8ec2dc1ee788942
parent471799d135a45b5a09f43bc103b5eb710548bb87
qed: use BlockDriverState's AioContext

Drop the assumption that we're using the main AioContext.  Convert
qemu_bh_new() to aio_bh_new() and qemu_aio_wait() to aio_poll() so we're
using the BlockDriverState's AioContext.

Implement .bdrv_detach/attach_aio_context() interfaces to move the
QED_F_NEED_CHECK timer from the old AioContext to the new one.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed-table.c
block/qed.c