]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: processBlockJob: Don't unlock @vm twice
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Mar 2015 09:26:18 +0000 (11:26 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 31 Mar 2015 00:36:10 +0000 (08:36 +0800)
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.

src/qemu/qemu_driver.c

index 6700fc958c69da9eca008eb9c118b51e73335fc7..a67bb481060d7b20c6a2bd5e677ca4fd357b9b98 100644 (file)
@@ -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)