mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: driver: Remove semi-stale comment about asynchronous job abort
Now that we track the job separately we watch only for the abort of the one single block job so the comment is no longer accurate. Also describing asynchronous operation is not really necessary. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
45c37d648d
commit
188de4f529
@ -17218,12 +17218,6 @@ qemuDomainBlockJobAbort(virDomainPtr dom,
|
|||||||
|
|
||||||
ignore_value(virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps));
|
ignore_value(virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps));
|
||||||
|
|
||||||
/*
|
|
||||||
* With the ABORT_ASYNC flag we don't need to do anything, the event will
|
|
||||||
* come from qemu and will update the XML as appropriate, but without the
|
|
||||||
* ABORT_ASYNC flag, we must block to guarantee synchronous operation. We
|
|
||||||
* do the waiting while still holding the VM job, to prevent newly
|
|
||||||
* scheduled block jobs from confusing us. */
|
|
||||||
if (!async) {
|
if (!async) {
|
||||||
qemuBlockJobUpdate(vm, job, QEMU_ASYNC_JOB_NONE);
|
qemuBlockJobUpdate(vm, job, QEMU_ASYNC_JOB_NONE);
|
||||||
while (qemuBlockJobIsRunning(job)) {
|
while (qemuBlockJobIsRunning(job)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user