]> git.proxmox.com Git - mirror_qemu.git/commit - block/blkverify.c
blkverify: implement .bdrv_detach/attach_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:39 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commit9d94020bc65485fe03a4acabd8559b682b193d07
tree43c53fec489ba6d63ee51abe410864e898f196b4
parent7e1efdf0a30faa2b3e560deafe16b8bd12c6f399
blkverify: implement .bdrv_detach/attach_aio_context()

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
use the BlockDriverState's AioContext.

Implement .bdrv_detach/attach_aio_context() interfaces to propagate
detach/attach to BDRVBlkverifyState->test_file.  The block layer takes
care of ->file and ->backing_hd but doesn't know about our ->test_file
BlockDriverState, which is also part of the graph.

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