summaryrefslogtreecommitdiffstats
path: root/qemu-aio.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2012-10-31 16:34:37 +0100
committerKevin Wolf2012-11-14 18:19:21 +0100
commitd7331bed11f5e65b3b640aab59ab22bc61a4e77d (patch)
treeb3fdcb8d0c226455b7d952decbb78fc042e300ef /qemu-aio.h
parentaio: use g_slice_alloc() for AIOCB pooling (diff)
downloadqemu-d7331bed11f5e65b3b640aab59ab22bc61a4e77d.tar.gz
qemu-d7331bed11f5e65b3b640aab59ab22bc61a4e77d.tar.xz
qemu-d7331bed11f5e65b3b640aab59ab22bc61a4e77d.zip
aio: rename AIOPool to AIOCBInfo
Now that AIOPool no longer keeps a freelist, it isn't really a "pool" anymore. Rename it to AIOCBInfo and make it const since it no longer needs to be modified. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-aio.h')
-rw-r--r--qemu-aio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/qemu-aio.h b/qemu-aio.h
index b29c509f27..3889fe97a4 100644
--- a/qemu-aio.h
+++ b/qemu-aio.h
@@ -21,19 +21,19 @@
typedef struct BlockDriverAIOCB BlockDriverAIOCB;
typedef void BlockDriverCompletionFunc(void *opaque, int ret);
-typedef struct AIOPool {
+typedef struct AIOCBInfo {
void (*cancel)(BlockDriverAIOCB *acb);
size_t aiocb_size;
-} AIOPool;
+} AIOCBInfo;
struct BlockDriverAIOCB {
- AIOPool *pool;
+ const AIOCBInfo *aiocb_info;
BlockDriverState *bs;
BlockDriverCompletionFunc *cb;
void *opaque;
};
-void *qemu_aio_get(AIOPool *pool, BlockDriverState *bs,
+void *qemu_aio_get(const AIOCBInfo *aiocb_info, BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque);
void qemu_aio_release(void *p);