From: Peter Krempa Date: Mon, 30 Mar 2015 09:26:18 +0000 (+0200) Subject: qemu: processBlockJob: Don't unlock @vm twice X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6b6c4ab8a6d2096bd5f50d2ae9b0a929fbaaf076;p=libvirt.git 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 6700fc958c..a67bb48106 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4574,7 +4574,6 @@ processBlockJobEvent(virQEMUDriverPtr driver, VIR_WARN("Unable to update persistent definition on vm %s " "after block job", vm->def->name); } - virObjectUnlock(vm); virObjectUnref(cfg); if (event)