mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: blockjob: Reset 'synchronous' block job handling flag prior to flushing events
When returning to asynchronous block job handling the flag which determines the handling method should be reset prior to flushing outstanding events. If there's an event to process the handler may invoke the monitor and another event may be received. We'd not process that one. Reset the flag earlier. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
22a9f08572
commit
93b77cba0a
@ -821,8 +821,8 @@ qemuBlockJobSyncEnd(virDomainObjPtr vm,
|
||||
diskdst = job->disk->dst;
|
||||
|
||||
VIR_DEBUG("disk=%s", NULLSTR(diskdst));
|
||||
qemuBlockJobUpdate(vm, job, asyncJob);
|
||||
job->synchronous = false;
|
||||
qemuBlockJobUpdate(vm, job, asyncJob);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user