[libvirt] [PATCH v2] qemu: fix deadlock if create qemuProcessReconnect thread failed

Peter Krempa pkrempa at redhat.com
Thu Sep 13 11:30:48 UTC 2018


On Thu, Sep 13, 2018 at 19:28:12 +0800, Wang Yechao wrote:
> qemuProcessReconnectHelper has hold the doms lock, if create
> qemuProcessReconnect thread failed, it will get the doms lock
> again to remove the dom from doms list.
> 
> add obj->inReconnetCtx flag to avoid deadlock.

Please describe the situation more or provide a reproducer.

> 
> Signed-off-by: Wang Yechao <wang.yechao255 at zte.com.cn>
> ---
>  src/conf/domain_conf.h      | 1 +
>  src/conf/virdomainobjlist.c | 6 ++++--
>  src/qemu/qemu_process.c     | 1 +
>  3 files changed, 6 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180913/26f902a2/attachment-0001.sig>


More information about the libvir-list mailing list