qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] flush pending aio requests


From: Glauber Costa
Subject: [Qemu-devel] [PATCH] flush pending aio requests
Date: Mon, 6 Jul 2009 09:32:09 -0400

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>
---
 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





reply via email to

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