diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-26 13:03:08 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:34 -0500 |
commit | 1e5b9d2fccb205ed8fc84fb38945b8fb3d225640 (patch) | |
tree | ccaa3ebeb0fc662822124cb29fd1559f789694a3 /block/raw-posix-aio.h | |
parent | fa39472763229b335bd1f4b7c9ff8ec8455f98e5 (diff) | |
download | qemu-1e5b9d2fccb205ed8fc84fb38945b8fb3d225640.zip qemu-1e5b9d2fccb205ed8fc84fb38945b8fb3d225640.tar.gz qemu-1e5b9d2fccb205ed8fc84fb38945b8fb3d225640.tar.bz2 |
Remove aio_ctx from paio_* interface
The context parameter in paio_submit isn't used anyway, so there is no reason
why block drivers should need to remember it. This also avoids passing a Linux
AIO context to paio_submit (which doesn't do any harm as long as the parameter
is unused, but it is highly confusing).
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/raw-posix-aio.h')
-rw-r--r-- | block/raw-posix-aio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/raw-posix-aio.h b/block/raw-posix-aio.h index a2d4348..dfc63b8 100644 --- a/block/raw-posix-aio.h +++ b/block/raw-posix-aio.h @@ -26,8 +26,8 @@ /* posix-aio-compat.c - thread pool based implementation */ -void *paio_init(void); -BlockDriverAIOCB *paio_submit(BlockDriverState *bs, void *aio_ctx, int fd, +int paio_init(void); +BlockDriverAIOCB *paio_submit(BlockDriverState *bs, int fd, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type); BlockDriverAIOCB *paio_ioctl(BlockDriverState *bs, int fd, |