From 93b77cba0a3ac52f1196acb7cc4e9817816fe7a4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 22 Jul 2019 18:15:38 +0200 Subject: [PATCH] qemu: blockjob: Reset 'synchronous' block job handling flag prior to flushing events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/qemu/qemu_blockjob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }