]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: flush in writethrough mode after writes
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jun 2012 22:04:49 +0000 (00:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:43 +0000 (14:03 +0200)
commitf05fa4ad0327579e143b20062e9d45b3ca935e24
treece14709853445287b07eb85c1be93ab790cb0c66
parent0fd05e8dd1ee7ae143fba3d6bcc6abe3fbeaeb34
block: flush in writethrough mode after writes

We want to make the formats handle their own flushes
autonomously, while keeping for guests the ability to use a writethrough
cache.  Since formats will write metadata via bs->file, bdrv_co_do_writev
is the only place where we need to add a flush.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c