]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0046-savevm-async-don-t-hold-BQL-during-setup.patch
bump version to 8.0.2-1
[pve-qemu.git] / debian / patches / pve / 0046-savevm-async-don-t-hold-BQL-during-setup.patch
CommitLineData
bf251437
FE
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Fiona Ebner <f.ebner@proxmox.com>
3Date: Fri, 5 May 2023 15:30:16 +0200
4Subject: [PATCH] savevm-async: don't hold BQL during setup
5
6See commit "migration: for snapshots, hold the BQL during setup
7callbacks" for why. This is separate, because a version of that one
8will hopefully land upstream.
9
10Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
11---
12 migration/savevm-async.c | 2 --
13 1 file changed, 2 deletions(-)
14
15diff --git a/migration/savevm-async.c b/migration/savevm-async.c
16index effe6d1e0d..f006a8e4d4 100644
17--- a/migration/savevm-async.c
18+++ b/migration/savevm-async.c
19@@ -403,10 +403,8 @@ void qmp_savevm_start(const char *statefile, Error **errp)
20 snap_state.state = SAVE_STATE_ACTIVE;
21 snap_state.finalize_bh = qemu_bh_new(process_savevm_finalize, &snap_state);
22 snap_state.co = qemu_coroutine_create(&process_savevm_co, NULL);
23- qemu_mutex_unlock_iothread();
24 qemu_savevm_state_header(snap_state.file);
25 qemu_savevm_state_setup(snap_state.file);
26- qemu_mutex_lock_iothread();
27
28 /* Async processing from here on out happens in iohandler context, so let
29 * the target bdrv have its home there.