]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
blkdebug: use BlockDriverState's AioContext
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:38 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commit7e1efdf0a30faa2b3e560deafe16b8bd12c6f399
treedb7f6212902d6a222d75da0291a6a104a3101344
parentdcd042282d855edf70df90b7d61d33b515320b7a
blkdebug: use BlockDriverState's AioContext

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

The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces
are not needed since no fd handlers, timers, or BHs stay registered when
requests have been drained.

Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/blkdebug.c