mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
migration/colo: Tidy up bql_unlock() around bdrv_activate_all()
Make the code more tight. Suggested-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> [fixed mangled author email address] Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
787ea49e80
commit
3dc27fac25
1 changed files with 1 additions and 2 deletions
|
@ -837,12 +837,11 @@ static void *colo_process_incoming_thread(void *opaque)
|
||||||
/* Make sure all file formats throw away their mutable metadata */
|
/* Make sure all file formats throw away their mutable metadata */
|
||||||
bql_lock();
|
bql_lock();
|
||||||
bdrv_activate_all(&local_err);
|
bdrv_activate_all(&local_err);
|
||||||
|
bql_unlock();
|
||||||
if (local_err) {
|
if (local_err) {
|
||||||
bql_unlock();
|
|
||||||
error_report_err(local_err);
|
error_report_err(local_err);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
bql_unlock();
|
|
||||||
|
|
||||||
failover_init_state();
|
failover_init_state();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue