From 07f076157475e1a8ea454e304e0ea5496d05b539 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 17 Oct 2011 12:32:12 +0200 Subject: block: unify flush implementations Add coroutine support for flush and apply the same emulation that we already do for read/write. bdrv_aio_flush is simplified to always go through a coroutine. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'block_int.h') diff --git a/block_int.h b/block_int.h index f2f4f2db38..9cb536d392 100644 --- a/block_int.h +++ b/block_int.h @@ -83,6 +83,7 @@ struct BlockDriver { int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); int coroutine_fn (*bdrv_co_writev)(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); + int coroutine_fn (*bdrv_co_flush)(BlockDriverState *bs); int (*bdrv_aio_multiwrite)(BlockDriverState *bs, BlockRequest *reqs, int num_reqs); -- cgit v1.2.3