mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
block: Rename qemu_aio_release -> qemu_aio_unref
Suggested-by: Benoît Canet <benoit.canet@irqsave.net> Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
ca5fd113b8
commit
8007429a99
16 changed files with 33 additions and 33 deletions
8
block.c
8
block.c
|
@ -4651,7 +4651,7 @@ void bdrv_aio_cancel(BlockDriverAIOCB *acb)
|
|||
abort();
|
||||
}
|
||||
}
|
||||
qemu_aio_release(acb);
|
||||
qemu_aio_unref(acb);
|
||||
}
|
||||
|
||||
/* Async version of aio cancel. The caller is not blocked if the acb implements
|
||||
|
@ -4692,7 +4692,7 @@ static void bdrv_aio_bh_cb(void *opaque)
|
|||
acb->common.cb(acb->common.opaque, acb->ret);
|
||||
qemu_bh_delete(acb->bh);
|
||||
acb->bh = NULL;
|
||||
qemu_aio_release(acb);
|
||||
qemu_aio_unref(acb);
|
||||
}
|
||||
|
||||
static BlockDriverAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,
|
||||
|
@ -4760,7 +4760,7 @@ static void bdrv_co_em_bh(void *opaque)
|
|||
acb->common.cb(acb->common.opaque, acb->req.error);
|
||||
|
||||
qemu_bh_delete(acb->bh);
|
||||
qemu_aio_release(acb);
|
||||
qemu_aio_unref(acb);
|
||||
}
|
||||
|
||||
/* Invoke bdrv_co_do_readv/bdrv_co_do_writev */
|
||||
|
@ -4891,7 +4891,7 @@ void qemu_aio_ref(void *p)
|
|||
acb->refcnt++;
|
||||
}
|
||||
|
||||
void qemu_aio_release(void *p)
|
||||
void qemu_aio_unref(void *p)
|
||||
{
|
||||
BlockDriverAIOCB *acb = p;
|
||||
assert(acb->refcnt > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue