qemu/hw/ide
Stefan Hajnoczi 922453bca6 block: convert qemu_aio_flush() calls to bdrv_drain_all()
Many places in QEMU call qemu_aio_flush() to complete all pending
asynchronous I/O.  Most of these places actually want to drain all block
requests but there is no block layer API to do so.

This patch introduces the bdrv_drain_all() API to wait for requests
across all BlockDriverStates to complete.  As a bonus we perform checks
after qemu_aio_wait() to ensure that requests really have finished.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-12-05 14:56:06 +01:00
..
ahci.c ahci: fix DPRINTF format strings 2011-10-26 14:22:40 +01:00
ahci.h ahci: add port I/O index-data pair 2011-09-21 14:32:20 +02:00
atapi.c atapi: kill MODE SENSE(6), fix MODE SENSE(10) 2011-11-18 13:54:32 +01:00
cmd646.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
core.c atapi: implement eject requests 2011-11-11 14:02:57 +01:00
ich.c ahci: add port I/O index-data pair 2011-09-21 14:32:20 +02:00
internal.h atapi/scsi: unify definitions for MMC 2011-10-28 19:25:50 +02:00
isa.c ide: Convert to isa_register_portio_list 2011-10-11 15:57:11 +02:00
macio.c block: convert qemu_aio_flush() calls to bdrv_drain_all() 2011-12-05 14:56:06 +01:00
microdrive.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
mmio.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
pci.c block: convert qemu_aio_flush() calls to bdrv_drain_all() 2011-12-05 14:56:06 +01:00
pci.h ide: convert to memory API 2011-08-08 10:15:54 -05:00
piix.c ide: Convert to isa_register_portio_list 2011-10-11 15:57:11 +02:00
qdev.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
via.c ide: Convert to isa_register_portio_list 2011-10-11 15:57:11 +02:00