From: Peter Krempa Date: Mon, 22 Jul 2019 16:15:38 +0000 (+0200) Subject: qemu: blockjob: Reset 'synchronous' block job handling flag prior to flushing events X-Git-Tag: v5.6.0-rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b77cba0a3ac52f1196acb7cc4e9817816fe7a4;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_blockjob.c b/src/qemu/qemu_blockjob.c index 575292ada2..da4f20929b 100644 --- a/src/qemu/qemu_blockjob.c +++ b/src/qemu/qemu_blockjob.c @@ -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); }