]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Mark job with broken data but tracked by qemu as reconnected
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Nov 2019 13:16:37 +0000 (14:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Nov 2019 14:59:33 +0000 (15:59 +0100)
commit5b29c7dc276da9d36eae4361d20d3095db262baa
tree9f2194cf769d61c554ae5160ff1578817e84fc8e
parentf15d4cb1c869ff691b2d6cddbe8463be28d526e1
qemu: blockjob: Mark job with broken data but tracked by qemu as reconnected

Otherwise it would get dropped later on as untracked despite us knowing
about it. Additionally since we cancelled it we must wait to dismiss it
which would not be possible if we unregister it. This also opened a
window for a race condition since the job state change event of the
just-cancelled job might be delivered prior to us unregistering the job
in which case everything would work properly.

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