]>
Commit | Line | Data |
---|---|---|
bf251437 FE |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Fiona Ebner <f.ebner@proxmox.com> | |
3 | Date: Fri, 5 May 2023 15:30:16 +0200 | |
4 | Subject: [PATCH] savevm-async: don't hold BQL during setup | |
5 | ||
6 | See commit "migration: for snapshots, hold the BQL during setup | |
7 | callbacks" for why. This is separate, because a version of that one | |
8 | will hopefully land upstream. | |
9 | ||
10 | Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> | |
11 | --- | |
12 | migration/savevm-async.c | 2 -- | |
13 | 1 file changed, 2 deletions(-) | |
14 | ||
15 | diff --git a/migration/savevm-async.c b/migration/savevm-async.c | |
16 | index 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. |