]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: driver: Don't use qemuBlockJobStartupFinalize in processBlockJobEvent
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jul 2019 16:14:44 +0000 (18:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 19 Jul 2019 13:49:40 +0000 (15:49 +0200)
commitd26f3cdedd3bd6bcaf2a25e9e29d89e51d113803
treef836589b1bf7dbcd4401fbb3c6cea63c88c203ba
parent00c4c971fd4eac00ce80f7ffe415a4f5a3c45b03
qemu: driver: Don't use qemuBlockJobStartupFinalize in processBlockJobEvent

While this function does start a block job in case when we'd not be able
to get our internal data for it, the handler sets the job state to
QEMU_BLOCKJOB_STATE_RUNNING anyways, thus qemuBlockJobStartupFinalize
would just unref the job.

Since the other usage of qemuBlockJobStartupFinalize in the other part
of the event handler was a bug replace this one anyways even if it would
not cause problems.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c