diff options
| author | Fam Zheng | 2014-09-11 07:41:08 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-09-22 12:38:57 +0200 |
| commit | f197fe2b2c77259b6570620f288d905bfa38e2da (patch) | |
| tree | e9dcfaa75bbd9bc93ae309bbd2129207dc1e36b6 /include | |
| parent | ide/ahci: Check for -ECANCELED in aio callbacks (diff) | |
| download | qemu-f197fe2b2c77259b6570620f288d905bfa38e2da.tar.gz qemu-f197fe2b2c77259b6570620f288d905bfa38e2da.tar.xz qemu-f197fe2b2c77259b6570620f288d905bfa38e2da.zip | |
block: Add refcnt in BlockDriverAIOCB
This will be useful in synchronous cancel emulation with
bdrv_aio_cancel_async.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/aio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/aio.h b/include/block/aio.h index 4603c0f066..2626fc745f 100644 --- a/include/block/aio.h +++ b/include/block/aio.h @@ -35,11 +35,13 @@ struct BlockDriverAIOCB { BlockDriverState *bs; BlockDriverCompletionFunc *cb; void *opaque; + int refcnt; }; void *qemu_aio_get(const AIOCBInfo *aiocb_info, BlockDriverState *bs, BlockDriverCompletionFunc *cb, void *opaque); void qemu_aio_release(void *p); +void qemu_aio_ref(void *p); typedef struct AioHandler AioHandler; typedef void QEMUBHFunc(void *opaque); |
