[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH] block-migration: Flush requests in blk_mig_cleanup
From: |
Kevin Wolf |
Subject: |
[Qemu-stable] [PATCH] block-migration: Flush requests in blk_mig_cleanup |
Date: |
Tue, 25 Sep 2012 15:53:39 +0200 |
When cancelling block migration, all in-flight requests of the block
migration must be completed before the data can be freed. This was
visible as failing assertions and segfaults.
Reported-by: Peter Lieven <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block-migration.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/block-migration.c b/block-migration.c
index 7def8ab..ed93301 100644
--- a/block-migration.c
+++ b/block-migration.c
@@ -519,6 +519,8 @@ static void blk_mig_cleanup(void)
BlkMigDevState *bmds;
BlkMigBlock *blk;
+ bdrv_drain_all();
+
set_dirty_tracking(0);
while ((bmds = QSIMPLEQ_FIRST(&block_mig_state.bmds_list)) != NULL) {
--
1.7.6.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] [PATCH] block-migration: Flush requests in blk_mig_cleanup,
Kevin Wolf <=