qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 0884657] flush pending aio requests


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 0884657] flush pending aio requests
Date: Fri, 10 Jul 2009 20:40:31 -0000

From: Glauber Costa <address@hidden>

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/migration.c b/migration.c
index e6c8b16..ee64d41 100644
--- a/migration.c
+++ b/migration.c
@@ -266,6 +266,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) {
             if (old_vm_running) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]