Skip to contentSkip to conversation

Handle BH's queued by AIO completions in qemu_aio_flush()

PATCH New Nolan 1 participant 1 message Jul 20, 2009

lore
Share & tools
lore

Nolan

author
#0 lore raw

PATCH 1/1 Handle BH's queued by AIO completions in qemu_aio_flush()

Without this, the call to qemu_aio_flush during migration doesn't actually flush all in-flight SCSI IOs.

Signed-off-by Nolan Leake <nolan <at> sigbus.net>
aio.c +1 -1
index dc9b85d..efc63fd 100644
@@ -112,7 +112,7 @@ void qemu_aio_flush(void)
         LIST_FOREACH(node, &aio_handlers, node) {
             ret |= node->io_flush(node->opaque);
         }
-    } while (ret > 0);
+    } while (qemu_bh_poll() || ret > 0);
 }
 
 void qemu_aio_wait(void)