diff options
author | John Snow <jsnow@redhat.com> | 2016-09-22 21:45:52 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-09-29 14:13:38 +0200 |
commit | 49137bf6845eaecad51a047fc06dd11c56118460 (patch) | |
tree | 49946c6eb4b76e65d177a6942f52f8f91b06eec5 /hw/i386 | |
parent | 22af08eacf6b5aa0e6c0581e547380b3eb4f95e9 (diff) | |
download | qemu-49137bf6845eaecad51a047fc06dd11c56118460.tar.gz qemu-49137bf6845eaecad51a047fc06dd11c56118460.tar.bz2 qemu-49137bf6845eaecad51a047fc06dd11c56118460.zip |
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>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/xen/xen_platform.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c index aa7839324c..f85635cc9a 100644 --- a/hw/i386/xen/xen_platform.c +++ b/hw/i386/xen/xen_platform.c @@ -134,8 +134,6 @@ static void platform_fixed_ioport_writew(void *opaque, uint32_t addr, uint32_t v devices, and bit 2 the non-primary-master IDE devices. */ if (val & UNPLUG_ALL_IDE_DISKS) { DPRINTF("unplug disks\n"); - blk_drain_all(); - blk_flush_all(); pci_unplug_disks(pci_dev->bus); } if (val & UNPLUG_ALL_NICS) { |