diff options
author | Christoph Hellwig <hch@lst.de> | 2009-09-04 19:01:49 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-11 10:19:46 -0500 |
commit | 20fefe2628d82eb6a73b545b76d78fa2e1c57d6a (patch) | |
tree | 5b8bc0ee1ab758a5b68c51e8ba5288f87b36af9c /block.h | |
parent | e1eac6ef844fc1243fa648109cef81975819f3bb (diff) | |
download | qemu-20fefe2628d82eb6a73b545b76d78fa2e1c57d6a.tar.gz qemu-20fefe2628d82eb6a73b545b76d78fa2e1c57d6a.tar.bz2 qemu-20fefe2628d82eb6a73b545b76d78fa2e1c57d6a.zip |
block: add aio_flush operation
Instead stalling the VCPU while serving a cache flush try to do it
asynchronously. Use our good old helper thread pool to issue an
asynchronous fdatasync for raw-posix. Note that while Linux AIO
implements a fdatasync operation it is not useful for us because
it isn't actually implement in asynchronous fashion.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,8 @@ BlockDriverAIOCB *bdrv_aio_readv(BlockDriverState *bs, int64_t sector_num, BlockDriverAIOCB *bdrv_aio_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *iov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque); +BlockDriverAIOCB *bdrv_aio_flush(BlockDriverState *bs, + BlockDriverCompletionFunc *cb, void *opaque); void bdrv_aio_cancel(BlockDriverAIOCB *acb); typedef struct BlockRequest { |