* [Qemu-devel] [PATCH] flush pending aio requests
@ 2009-07-06 13:32 Glauber Costa
0 siblings, 0 replies; only message in thread
From: Glauber Costa @ 2009-07-06 13:32 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
When we finish migration, there may be pending async io requests
in flight. If we don't flush it before stage3 starting, it might be
the case that the guest loses it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
migration.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/migration.c b/migration.c
index 190b37e..72c6cbf 100644
--- a/migration.c
+++ b/migration.c
@@ -264,6 +264,7 @@ void migrate_fd_put_ready(void *opaque)
dprintf("done iterating\n");
vm_stop(0);
+ qemu_aio_flush();
bdrv_flush_all();
if ((qemu_savevm_state_complete(s->file)) < 0) {
vm_start();
--
1.6.2.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-06 13:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 13:32 [Qemu-devel] [PATCH] flush pending aio requests Glauber Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).