summaryrefslogtreecommitdiffstats
path: root/block_int.h
diff options
context:
space:
mode:
authorPaolo Bonzini2011-10-20 13:16:24 +0200
committerKevin Wolf2011-10-21 17:34:14 +0200
commit8b94ff85737062876c03e7506abb500521c749b9 (patch)
tree5bb67bd0896bb49a064e041c30cf61d2d4ce0a40 /block_int.h
parentblock: take lock around bdrv_write implementations (diff)
downloadqemu-8b94ff85737062876c03e7506abb500521c749b9.tar.gz
qemu-8b94ff85737062876c03e7506abb500521c749b9.tar.xz
qemu-8b94ff85737062876c03e7506abb500521c749b9.zip
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>
Diffstat (limited to 'block_int.h')
-rw-r--r--block_int.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/block_int.h b/block_int.h
index 384598ff02..bc3b07e2f8 100644
--- a/block_int.h
+++ b/block_int.h
@@ -62,7 +62,6 @@ struct BlockDriver {
const uint8_t *buf, int nb_sectors);
void (*bdrv_close)(BlockDriverState *bs);
int (*bdrv_create)(const char *filename, QEMUOptionParameter *options);
- int (*bdrv_flush)(BlockDriverState *bs);
int (*bdrv_discard)(BlockDriverState *bs, int64_t sector_num,
int nb_sectors);
int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,