]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0029-PVE-move-snapshot-cleanup-into-bottom-half.patch
update sources for v4.0.1
[pve-qemu.git] / debian / patches / pve / 0029-PVE-move-snapshot-cleanup-into-bottom-half.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 24 Jun 2019 10:19:50 +0200
4 Subject: [PATCH] PVE: move snapshot cleanup into bottom half
5
6 as per:
7 (0ceccd858a8d) migration: qemu_savevm_state_cleanup() in cleanup
8
9 may affect held locks and therefore change assumptions made
10 by that function!
11
12 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
14 ---
15 savevm-async.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 diff --git a/savevm-async.c b/savevm-async.c
19 index 0bbbbf51ba..f9355c5036 100644
20 --- a/savevm-async.c
21 +++ b/savevm-async.c
22 @@ -197,6 +197,8 @@ static void process_savevm_cleanup(void *opaque)
23 int ret;
24 qemu_bh_delete(snap_state.cleanup_bh);
25 snap_state.cleanup_bh = NULL;
26 + qemu_savevm_state_cleanup();
27 +
28 qemu_mutex_unlock_iothread();
29 qemu_thread_join(&snap_state.thread);
30 qemu_mutex_lock_iothread();
31 @@ -273,7 +275,6 @@ static void *process_savevm_thread(void *opaque)
32 save_snapshot_error("qemu_savevm_state_iterate error %d", ret);
33 break;
34 }
35 - qemu_savevm_state_cleanup();
36 DPRINTF("save complete\n");
37 break;
38 }