mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08: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
@ -837,12 +837,11 @@ static void *colo_process_incoming_thread(void *opaque)
|
||||
/* Make sure all file formats throw away their mutable metadata */
|
||||
bql_lock();
|
||||
bdrv_activate_all(&local_err);
|
||||
bql_unlock();
|
||||
if (local_err) {
|
||||
bql_unlock();
|
||||
error_report_err(local_err);
|
||||
return NULL;
|
||||
}
|
||||
bql_unlock();
|
||||
|
||||
failover_init_state();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user