Blame SOURCES/kvm-migration-Reset-rather-than-destroy-main_thread_load.patch

9bac43
From 21133ce1a56f6490a7ea9dd107013088c1fc05ed Mon Sep 17 00:00:00 2001
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
Date: Thu, 2 Nov 2017 15:36:56 +0100
9bac43
Subject: [PATCH 3/9] migration: Reset rather than destroy
9bac43
 main_thread_load_event
9bac43
9bac43
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
Message-id: <20171102153657.13452-2-dgilbert@redhat.com>
9bac43
Patchwork-id: 77481
9bac43
O-Subject: [RHEL-7.5 qemu-kvm-rhev PATCH 1/2] migration: Reset rather than destroy main_thread_load_event
9bac43
Bugzilla: 1508799
9bac43
RH-Acked-by: Peter Xu <peterx@redhat.com>
9bac43
RH-Acked-by: Thomas Huth <thuth@redhat.com>
9bac43
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9bac43
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
9bac43
migration_incoming_state_destroy doesn't really destroy, it cleans up.
9bac43
After a loadvm it's called, but the loadvm command can be run twice,
9bac43
and so destroying an init-once mutex breaks on the second loadvm.
9bac43
9bac43
Reported-by: Stafford Horne <shorne@gmail.com>
9bac43
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
Message-Id: <20170825141940.20740-2-dgilbert@redhat.com>
9bac43
Reviewed-by: Peter Xu <peterx@redhat.com>
9bac43
Tested-by: Stafford Horne <shorne@gmail.com>
9bac43
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
(cherry picked from commit 5089e1862fe80b6f23ba4c494e2902cbe3d9d48e)
9bac43
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9bac43
---
9bac43
 migration/migration.c | 2 +-
9bac43
 1 file changed, 1 insertion(+), 1 deletion(-)
9bac43
9bac43
diff --git a/migration/migration.c b/migration/migration.c
9bac43
index 1288697..cd33718 100644
9bac43
--- a/migration/migration.c
9bac43
+++ b/migration/migration.c
9bac43
@@ -172,7 +172,7 @@ void migration_incoming_state_destroy(void)
9bac43
         mis->from_src_file = NULL;
9bac43
     }
9bac43
 
9bac43
-    qemu_event_destroy(&mis->main_thread_load_event);
9bac43
+    qemu_event_reset(&mis->main_thread_load_event);
9bac43
 }
9bac43
 
9bac43
 static void migrate_generate_event(int new_state)
9bac43
-- 
9bac43
1.8.3.1
9bac43