Paolo Bonzini 8b94ff8573 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>
2011-10-21 17:34:14 +02:00
..
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00
2011-10-21 17:34:14 +02:00