block: Drop bdrv_em_aiocb_info.cancel
Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
3acabd685e
commit
f600ac1902
10
block.c
10
block.c
|
@ -4681,18 +4681,8 @@ typedef struct BlockDriverAIOCBSync {
|
||||||
int is_write;
|
int is_write;
|
||||||
} BlockDriverAIOCBSync;
|
} BlockDriverAIOCBSync;
|
||||||
|
|
||||||
static void bdrv_aio_cancel_em(BlockDriverAIOCB *blockacb)
|
|
||||||
{
|
|
||||||
BlockDriverAIOCBSync *acb =
|
|
||||||
container_of(blockacb, BlockDriverAIOCBSync, common);
|
|
||||||
qemu_bh_delete(acb->bh);
|
|
||||||
acb->bh = NULL;
|
|
||||||
qemu_aio_release(acb);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const AIOCBInfo bdrv_em_aiocb_info = {
|
static const AIOCBInfo bdrv_em_aiocb_info = {
|
||||||
.aiocb_size = sizeof(BlockDriverAIOCBSync),
|
.aiocb_size = sizeof(BlockDriverAIOCBSync),
|
||||||
.cancel = bdrv_aio_cancel_em,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void bdrv_aio_bh_cb(void *opaque)
|
static void bdrv_aio_bh_cb(void *opaque)
|
||||||
|
|
Loading…
Reference in a new issue