aboutsummaryrefslogtreecommitdiff
path: root/block/linux-aio.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-09-11 13:41:28 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-22 11:39:17 +0100
commit8007429a99d6ea8480ba0a7a5fb5ae92473f798c (patch)
treebf761b6e8e9caa7d78236461c65913f369924208 /block/linux-aio.c
parentca5fd113b8ae5898853a757e06cb8d8a0c5e5d85 (diff)
downloadqemu-8007429a99d6ea8480ba0a7a5fb5ae92473f798c.zip
qemu-8007429a99d6ea8480ba0a7a5fb5ae92473f798c.tar.gz
qemu-8007429a99d6ea8480ba0a7a5fb5ae92473f798c.tar.bz2
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>
Diffstat (limited to 'block/linux-aio.c')
-rw-r--r--block/linux-aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/linux-aio.c b/block/linux-aio.c
index b67f56c..f4baba2 100644
--- a/block/linux-aio.c
+++ b/block/linux-aio.c
@@ -88,7 +88,7 @@ static void qemu_laio_process_completion(struct qemu_laio_state *s,
}
laiocb->common.cb(laiocb->common.opaque, ret);
- qemu_aio_release(laiocb);
+ qemu_aio_unref(laiocb);
}
/* The completion BH fetches completed I/O requests and invokes their
@@ -286,7 +286,7 @@ BlockDriverAIOCB *laio_submit(BlockDriverState *bs, void *aio_ctx, int fd,
return &laiocb->common;
out_free_aiocb:
- qemu_aio_release(laiocb);
+ qemu_aio_unref(laiocb);
return NULL;
}