]> git.proxmox.com Git - qemu.git/blobdiff - hw/megasas.c
softmmu: move include files to include/sysemu/
[qemu.git] / hw / megasas.c
index 291ff404030c540ddea8b2fc68668243684f8039..eb191f5e12c033ef2d2a45208de61aaf06deadeb 100644 (file)
  */
 
 #include "hw.h"
-#include "pci.h"
-#include "dma.h"
-#include "msix.h"
-#include "iov.h"
+#include "pci/pci.h"
+#include "sysemu/dma.h"
+#include "pci/msix.h"
+#include "qemu/iov.h"
 #include "scsi.h"
 #include "scsi-defs.h"
 #include "trace.h"
@@ -1296,7 +1296,7 @@ static int megasas_dcmd_get_properties(MegasasState *s, MegasasCmd *cmd)
 
 static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd)
 {
-    qemu_aio_flush();
+    bdrv_drain_all();
     return MFI_STAT_OK;
 }