From nobody Sun Feb 8 19:24:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576848362; cv=none; d=zohomail.com; s=zohoarc; b=VXqaWRLsx3fUTNvoYM30ACyvnb0D7i51j32c8xDf5REh6yg55BwWDV8sWCCCIbaHDju/23i0ZN68+qdTIC8qk+/yOk4roTT4zqZW4lYziMta3+f3HEBLXNOKUT64+Y6kQN4Tc8HdawOTTl+/ndOQQRgBDx4CcrdOUwroNmfeWCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576848362; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IK6cAxCbrZNRYgaWnLuFDUqLwbTOCsPXpVUM26LmM4s=; b=Slt4xrCMWjULgmibEkehx8HhkvbX3a4co+HOTQYBa8BdHK7jwswtGLmnSEzo+UXONplCQKCfF2GMBpqJ6A+ETSnfV/03b5B8W38PeyS5FAsCQafURsxIOvott38Pvw9r+A+8hwU6zhoYqkefqFVbTmKH1zw8BJgYtiyQ1KOYOj0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1576848362301650.9186574560326; Fri, 20 Dec 2019 05:26:02 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-KKJo-84YPMyCUgmmiYmgxw-1; Fri, 20 Dec 2019 08:25:59 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4A0511005516; Fri, 20 Dec 2019 13:25:53 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 234EA5C578; Fri, 20 Dec 2019 13:25:53 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D58BD182B016; Fri, 20 Dec 2019 13:25:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBKDPanN028837 for ; Fri, 20 Dec 2019 08:25:37 -0500 Received: by smtp.corp.redhat.com (Postfix) id ED9D51CE; Fri, 20 Dec 2019 13:25:36 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 771CC5C7DD for ; Fri, 20 Dec 2019 13:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576848361; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IK6cAxCbrZNRYgaWnLuFDUqLwbTOCsPXpVUM26LmM4s=; b=gfPvG//fbIhRtruUiHPKalc+E2J5uf0jy49ZYTtI/Cp5zVEIZEVnWK1FCjq1g19/fk8irD L5fq+yAXQYQRR+JfakTkGEKEn5pCgn7upYT6HNv3Z7dQrksfdVt0qsdmQs6GhaeEfHEmSV 0IEMGbZ2cLYjC62TOmx+jQtaaW8WtRU= From: Peter Krempa To: libvir-list@redhat.com Date: Fri, 20 Dec 2019 14:25:19 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 01/11] qemu: block: Use proper asyncJob when waiting for completion of blockdev-create X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: KKJo-84YPMyCUgmmiYmgxw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The waiting loop used QEMU_ASYNC_JOB_NONE rather than 'asyncJob' passed from the caller. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index 95a2702f9d..eab21bc107 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -2406,11 +2406,11 @@ qemuBlockStorageSourceCreateGeneric(virDomainObjPtr= vm, qemuBlockJobStarted(job, vm); - qemuBlockJobUpdate(vm, job, QEMU_ASYNC_JOB_NONE); + qemuBlockJobUpdate(vm, job, asyncJob); while (qemuBlockJobIsRunning(job)) { if (virDomainObjWait(vm) < 0) goto cleanup; - qemuBlockJobUpdate(vm, job, QEMU_ASYNC_JOB_NONE); + qemuBlockJobUpdate(vm, job, asyncJob); } if (job->state =3D=3D QEMU_BLOCKJOB_STATE_FAILED || --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list