qemu: fix the vm deadlock when deleting a nonexistent iothread

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

Jump to endjob instead of cleanup to fix this deadlock.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
Luyao Huang 2015-05-04 17:36:16 +08:00 committed by Ján Tomko
parent 3dae162db7
commit 3f7cad7a8f

View File

@ -6365,7 +6365,7 @@ qemuDomainChgIOThread(virQEMUDriverPtr driver,
_("cannot find IOThread '%u' in persistent "
"iothreadids"),
iothread_id);
goto cleanup;
goto endjob;
}
virDomainIOThreadIDDel(persistentDef, iothread_id);