render / rpms / libvirt

Forked from rpms/libvirt 11 months ago
Clone
dc89ad
From 6d0a3a1730efdc0b0c179e5bee64749ef5eed967 Mon Sep 17 00:00:00 2001
dc89ad
Message-Id: <6d0a3a1730efdc0b0c179e5bee64749ef5eed967@dist-git>
dc89ad
From: Peter Krempa <pkrempa@redhat.com>
dc89ad
Date: Thu, 2 Apr 2015 11:27:57 +0200
dc89ad
Subject: [PATCH] qemu: processBlockJob: Don't unlock @vm twice
dc89ad
dc89ad
https://bugzilla.redhat.com/show_bug.cgi?id=1208021
dc89ad
dc89ad
Commit 1a92c719 (known as 12fdae1ebb74 downstream) moved code to handle
dc89ad
block job events to a different function that is executed in a separate
dc89ad
thread. The caller of processBlockJob handles locking and unlocking of
dc89ad
@vm, so the we should not do it in the function itself.
dc89ad
dc89ad
(cherry picked from commit 6b6c4ab8a6d2096bd5f50d2ae9b0a929fbaaf076)
dc89ad
dc89ad
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
dc89ad
---
dc89ad
 src/qemu/qemu_driver.c | 1 -
dc89ad
 1 file changed, 1 deletion(-)
dc89ad
dc89ad
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
dc89ad
index 4293817..0939223 100644
dc89ad
--- a/src/qemu/qemu_driver.c
dc89ad
+++ b/src/qemu/qemu_driver.c
dc89ad
@@ -4523,7 +4523,6 @@ processBlockJobEvent(virQEMUDriverPtr driver,
dc89ad
             VIR_WARN("Unable to update persistent definition on vm %s "
dc89ad
                      "after block job", vm->def->name);
dc89ad
     }
dc89ad
-    virObjectUnlock(vm);
dc89ad
     virObjectUnref(cfg);
dc89ad
 
dc89ad
     if (event)
dc89ad
-- 
dc89ad
2.3.5
dc89ad