]> git.ipfire.org Git - thirdparty/qemu.git/commit
block-backend: remove blk_flush_all
authorJohn Snow <jsnow@redhat.com>
Fri, 23 Sep 2016 01:45:52 +0000 (21:45 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 22:06:27 +0000 (17:06 -0500)
commit4a25ab2a04ff0ff80589608de527cc68216cd480
treeabe21d617570ab19fa96bf52d4b8a756703271e4
parent95200ebb5078a6718a8010528263994f9cb7ebaf
block-backend: remove blk_flush_all

We can teach Xen to drain and flush each device as it needs to, instead
of trying to flush ALL devices. This removes the last user of
blk_flush_all.

The function is therefore removed under the premise that any new uses
of blk_flush_all would be the wrong paradigm: either flush the single
device that requires flushing, or use an appropriate flush_all mechanism
from outside of the BlkBackend layer.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 49137bf6845eaecad51a047fc06dd11c56118460)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/block-backend.c
hw/i386/xen/xen_platform.c
hw/ide/piix.c
include/sysemu/block-backend.h