[libvirt] [PATCH] qemu: fix vm deadlock when try to use numatune in session mode

Luyao Huang lhuang at redhat.com
Tue Feb 17 03:37:52 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1126762

commit 43b67f introduce a deadlock issue when we use numatune
to change numa settings to a vm in session mode.

Jump to endjob instead of jump to cleanup.

Signed-off-by: Luyao Huang <lhuang at redhat.com>
---
 src/qemu/qemu_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 709f468..1bbbe9b 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -9495,7 +9495,7 @@ qemuDomainSetNumaParameters(virDomainPtr dom,
         flags & VIR_DOMAIN_AFFECT_LIVE) {
         virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
                        _("NUMA tuning is not available in session mode"));
-        goto cleanup;
+        goto endjob;
     }
 
     if (flags & VIR_DOMAIN_AFFECT_LIVE) {
-- 
1.8.3.1




More information about the libvir-list mailing list