mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: processBlockJob: Don't unlock @vm twice
Commit 1a92c719
moved code to handle block job events to a different
function that is executed in a separate thread. The caller of
processBlockJob handles locking and unlocking of @vm, so the we should
not do it in the function itself.
This commit is contained in:
parent
3c6a72d537
commit
6b6c4ab8a6
@ -4574,7 +4574,6 @@ processBlockJobEvent(virQEMUDriverPtr driver,
|
|||||||
VIR_WARN("Unable to update persistent definition on vm %s "
|
VIR_WARN("Unable to update persistent definition on vm %s "
|
||||||
"after block job", vm->def->name);
|
"after block job", vm->def->name);
|
||||||
}
|
}
|
||||||
virObjectUnlock(vm);
|
|
||||||
virObjectUnref(cfg);
|
virObjectUnref(cfg);
|
||||||
|
|
||||||
if (event)
|
if (event)
|
||||||
|
Loading…
Reference in New Issue
Block a user