Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA050C44515 for ; Mon, 20 Jul 2026 07:56:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1366162.1616083 (Exim 4.92) (envelope-from ) id 1wlirg-0006OD-5G; Mon, 20 Jul 2026 07:56:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1366162.1616083; Mon, 20 Jul 2026 07:56:40 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wlirg-0006O1-0w; Mon, 20 Jul 2026 07:56:40 +0000 Received: by outflank-mailman (input) for mailman id 1366162; Mon, 20 Jul 2026 07:56:39 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wlirf-0006KP-8J for xen-devel@lists.xenproject.org; Mon, 20 Jul 2026 07:56:39 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wlire-008bDr-L8 for xen-devel@lists.xenproject.org; Mon, 20 Jul 2026 09:56:38 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a5dd4a6-bab6-0a2a0a5309dd-0a2a45078b54-42 for ; Mon, 20 Jul 2026 09:56:38 +0200 Received: from [170.10.129.124] (helo=us-smtp-delivery-124.mimecast.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6a5dd4b5-b4ea-0a2a45070019-aa0a817c7ea3-3 for ; Mon, 20 Jul 2026 09:56:38 +0200 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-479-VB5yDZjfN5uX1YugrrQK3A-1; Mon, 20 Jul 2026 03:56:32 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9BA841956057; Mon, 20 Jul 2026 07:56:30 +0000 (UTC) Received: from localhost (unknown [10.44.22.17]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CAB5D195422C; Mon, 20 Jul 2026 07:56:28 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=mimecast20190719 header.d=redhat.com header.i="@redhat.com" header.h="From:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1784534197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=utSN3mhE2is8KfGh3+2A1hakyZDW+n+VzyAtNi0hb8g=; b=AJ7X4eqWLXbTXaiHDP/7iZlZq2687UaMx0cwhO5XMVg8tKq8Ee1/uF56Gqpwi9UiUgRIUh ONX7t1WN2BZvghTqVp4/R+9ke0mjIXSPnthlNUGxeiZhARATrgv4C6YgfnsKsxeKioZJ0p kaZyjfoRYMCU8hNyA1WBIIvloEYmHZ4= X-MC-Unique: VB5yDZjfN5uX1YugrrQK3A-1 X-Mimecast-MFC-AGG-ID: VB5yDZjfN5uX1YugrrQK3A_1784534190 From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Mon, 20 Jul 2026 11:55:34 +0400 Subject: [PATCH 5/8] qcow2: remove invalid qcow2_check_refcounts calls MIME-Version: 1.0 Message-Id: <20260720-co-v1-5-fabb4db3c204@redhat.com> References: <20260720-co-v1-0-fabb4db3c204@redhat.com> In-Reply-To: <20260720-co-v1-0-fabb4db3c204@redhat.com> To: qemu-devel@nongnu.org Cc: Markus Armbruster , Peter Xu , Fabiano Rosas , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , John Snow , Vladimir Sementsov-Ogievskiy , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org, Stefan Hajnoczi , Fam Zheng , "Denis V. Lunev" , Christian Schoenebeck , Greg Kurz , "Michael S. Tsirkin" , Stefano Stabellini , Anthony PERARD , "Edgar E. Iglesias" , xen-devel@lists.xenproject.org, Li Zhijian , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Developer-Signature: v=1; a=openpgp-sha256; l=1376; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=lDMiv5gtrBs/qk0wtWevIj1n6j5/hXAFjJohWIk2KvE=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqXdSJagLQUSmkkLOieomfVHfQf3Yg/ieZBFMD8 3E57Ey18IKJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCal3UiQAKCRDa6OEJdZac 5Tf5D/9/GombD/VzsbM/KN4eV+sUCeRbrgLneqzrGGiilG+mkvhBkAKEK+1hau1h1tarv0Mv+fi YGWaCug8JeZKiW3JeoHpClkZjYE+sFcimL+SI63Ll72CsTooTm/AOeql5HSar2LgPQ0sbYPVSGA 7WMtKSnPtp41QS/N+ttHibR4oZwW58Qr2WEnD/lJbayNS7x8x+4tgriHicBsWDZGjgYKdJiGfYa wmvr9WSu4kPDrI3cbS8N2+wS8ZXNuDYZqASTRbFJo8F3cRnoVe9FU/2T5VBw+u6SdwBo6P+InXH jdCh8by7q49AYj81a3RXBBQUTo4E1KNL+PVwT9dyBVmbGKzodsz/vkap3GF6Io6/aSyU//VR+/e /KaT5LwRjm5CbajylToskjl4GTCviPaNAcj0h+N8rIjS82U5hE5OBHJGv1D5QxxgqhXkDZ7UW3R TqMXH81S2RikpKG8TzHNjfW5DbXapIKSPa9oBjAISx8dQeCbXd/0vRHBlep+su0x1l9wtmSVLy7 r0RoGtOh/DO78mbFrmQwoBde6sepR2ORnDTz6L8UxVuq77tw+a+X8b2cp6kmdowBCpa9zALyDFW h0cgNPViS0D6em8jQPf/G6YYOHeF1yOjjHHQpsHCySPwKBT6gxGV4TE8tlv1PGhDqBdPM/GaWco 0vMxckJnT25iCvQ== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-MFC-PROC-ID: WipGPYrvavzyqoToNbPKx1irKXc2UcXH5ofbZKM62gU_1784534190 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-ef75cf/1784534198-3C212AE4-CD023772/0/0 X-purgate-type: clean X-purgate-size: 1378 Those DEBUG_ALLOC-guarded are dead code incorrectly calling coroutine fn from non-coroutine. Remove it. Signed-off-by: Marc-André Lureau --- block/qcow2-snapshot.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index 1e8dc48be1c..8453ad73d10 100644 --- a/block/qcow2-snapshot.c +++ b/block/qcow2-snapshot.c @@ -740,12 +740,6 @@ int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info) ROUND_UP(sn->vm_state_size, s->cluster_size), QCOW2_DISCARD_NEVER, false); -#ifdef DEBUG_ALLOC - { - BdrvCheckResult result = {0}; - qcow2_check_refcounts(bs, &result, 0); - } -#endif return 0; fail: @@ -893,12 +887,6 @@ int qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id) goto fail; } -#ifdef DEBUG_ALLOC - { - BdrvCheckResult result = {0}; - qcow2_check_refcounts(bs, &result, 0); - } -#endif return 0; fail: @@ -975,12 +963,6 @@ int qcow2_snapshot_delete(BlockDriverState *bs, return ret; } -#ifdef DEBUG_ALLOC - { - BdrvCheckResult result = {0}; - qcow2_check_refcounts(bs, &result, 0); - } -#endif return 0; } -- 2.55.0