]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: unify flush implementations
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Oct 2011 10:32:12 +0000 (12:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Oct 2011 15:34:13 +0000 (17:34 +0200)
commit07f076157475e1a8ea454e304e0ea5496d05b539
treeef06ee1624e52916bce7a6e0032969e79f4ed4cb
parent5cce43bb288ea22ef1c3faa77f2c5e8aa04b6236
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 <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
block_int.h