Re: [Qemu-devel] [PATCH 7/8] block: change flush to co_flush

2011-10-20 Thread Kevin Wolf
Am 19.10.2011 16:59, schrieb Paolo Bonzini: > 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 t

[Qemu-devel] [PATCH 7/8] block: change flush to co_flush

2011-10-19 Thread Paolo Bonzini
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