]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0024-PVE-move-snapshot-cleanup-into-bottom-half.patch
bump version to 4.2.0-2
[pve-qemu.git] / debian / patches / pve / 0024-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: Tue, 10 Mar 2020 12:55:21 +0100
4 Subject: [PATCH 24/32] 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 393d55af2a..790e27ae37 100644
20 --- a/savevm-async.c
21 +++ b/savevm-async.c
22 @@ -201,6 +201,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 @@ -277,7 +279,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 }