mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemu: blockjob: Finish handling job with broken data
Now that we have a separate job type which will not trigger normal code paths for terminating job we can remove the ad-hoc handling. This possibly fixes the issue of a broken job inheriting the disk and then finishing in which case we'd not detach the backing chain. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
e67e8c545a
commit
d310b08697
@ -1335,11 +1335,6 @@ qemuBlockJobEventProcessConcluded(qemuBlockJobDataPtr job,
|
|||||||
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (job->invalidData) {
|
|
||||||
VIR_WARN("terminating job '%s' with invalid data", job->name);
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((job->newstate == QEMU_BLOCKJOB_STATE_COMPLETED ||
|
if ((job->newstate == QEMU_BLOCKJOB_STATE_COMPLETED ||
|
||||||
job->newstate == QEMU_BLOCKJOB_STATE_FAILED) &&
|
job->newstate == QEMU_BLOCKJOB_STATE_FAILED) &&
|
||||||
job->state == QEMU_BLOCKJOB_STATE_ABORTING)
|
job->state == QEMU_BLOCKJOB_STATE_ABORTING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user