]> git.proxmox.com Git - qemu.git/commit
block: Flush parent to OS with cache=unsafe
authorKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2012 10:52:45 +0000 (12:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2012 13:14:43 +0000 (15:14 +0200)
commitd4c823292336598e2a0c79eb38a640d95748e2a2
tree3872534adae5b12ae16e6d6368dbf4acaef4789a
parent64e69e80920d82df3fa679bc41b13770d2f99360
block: Flush parent to OS with cache=unsafe

Commit 29cdb251 already added a comment that no unnecessary flushes to
disk will occur, this patch makes the code even get to the point of the
comment. This is mostly theoretical because in practice we only stack
one format on top of one protocol, the former implementing flush_to_os
and the latter only flush_to_disk. It starts to matter when drivers that
are not on top implement flush_to_os.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block.c