]> git.proxmox.com Git - qemu.git/commit - block/vmdk.c
block: change flush to co_flush
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Oct 2011 11:16:24 +0000 (13:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Oct 2011 15:34:14 +0000 (17:34 +0200)
commit8b94ff85737062876c03e7506abb500521c749b9
tree5bb67bd0896bb49a064e041c30cf61d2d4ce0a40
parente183ef75cc28d31addbb937a4680090495786944
block: change flush to co_flush

Since coroutine operation is now mandatory, convert all bdrv_flush
implementations to coroutines.  For qcow2, this means taking the lock.
Other implementations are simpler and just forward bdrv_flush to the
underlying protocol, so they can avoid the lock.

The bdrv_flush callback is then unused and can be eliminated.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/cow.c
block/qcow.c
block/qcow2.c
block/raw-win32.c
block/rbd.c
block/vdi.c
block/vmdk.c
block/vpc.c
block_int.h