]> xenbits.xensource.com Git - libvirt.git/commit
qemu: blockjob: Fix deadlock when terminating job with invalid data
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Nov 2019 12:16:36 +0000 (13:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Nov 2019 14:59:33 +0000 (15:59 +0100)
commit8622498f6e42d29140f5ca63393ef29e2ffc0d51
treeb13ea8dd99b8645797094eabefc7334c6168b6fb
parentccde9ca1f4fa5c2f1a3a2fac53661c27faeaea1c
qemu: blockjob: Fix deadlock when terminating job with invalid data

We must exit the monitor prior to refusing other work, otherwise the VM
object will become unusable.

This bug was introduced in commit v5.5.0-244-gc412383796 but thankfully
the code path was not excercised without QEMU_CAPS_BLOCKDEV.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_blockjob.c