]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: avoid deadlock in qemuDomainObjStopWorker
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Thu, 23 Jul 2020 08:02:59 +0000 (11:02 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 7 Sep 2020 06:33:59 +0000 (09:33 +0300)
commit860a999802d3c82538373bb3f314f92a2e258754
tree2d52e0b2e7297a1750566f1d57f72f0ccf7943c6
parentf4fc3db9204407874181117085756c9ced78adad
qemu: avoid deadlock in qemuDomainObjStopWorker

We are dropping the only reference here so that the event loop thread
is going to be exited synchronously. In order to avoid deadlocks we
need to unlock the VM so that any handler being called can finish
execution and thus even loop thread be finished too.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c