From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 0CC23803F9 for ; Tue, 10 Nov 2026 07:53:24 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AA7q9fw011948; Tue, 10 Nov 2026 10:52:09 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AA7q9fw011948 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="S+kKkmdV" Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AA7pk3p011874 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 10 Nov 2026 10:51:47 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AA7pk3p011874 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-4930269afdcso1168175f8f.2 for ; Mon, 09 Nov 2026 23:51:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHQRLYDz9ifwA1dqDynM/WmeaUIYwDR01mG7LKf0StNI7G830McbbBUdOKRjxVV66S/MeNkyg==@openvz.org X-Gm-Message-State: APuU4Z/urYfc3aOfE4mq6M7UbGxZ/oeglTLDdCZ4ADSljRCsvin9jESr TTBHc/YQxOVuJy7h/cSaGK8sKvvfS++1XeNVgzgWAzjSSLU9057ewkiHDSj7lNot3k+cFtd/bQa mSYjXwGQR9JzongrFfJwUvhdX80BV7hMqBxWeUVIK+y5R4yPJ8EP7ig== X-Gm-Gg: AYBFou0a4YzlBp/JUYOHm/52C9uwJSQ67rVW2LON2hU58+ZHEt0aDnkbCVkrzq2MZwc gmCIYN964JYJhoXStLluX/cRe1PzAVYUo8er78V3fowA1h9oNTTUJkVrWTxUQt3F5/tGiAqr2UB 7YDN24d371s+1lIql006XboSp9f+1TEDqDPKzOKNP+x1DriketjAdySX/oz0/yBdo5kAUgEQ7B1 aQkpmDn5Ojxx8yvQySlkAD7xrcA/fLg/epftsxZasy2Pcem4KEFBe0odL1TOkL1gH4o1EiSQVJH 2n9304/VYnYqnyLwMR9Tp5C2lD11rHcZipDAaBuueS/JwZfUEu3xyq0JDhfPbtEICanmcgN7VtK dpjzCMwOFzJv09QqOT9OjVI+BjSGC X-Received: by 2002:a05:6000:25e9:b0:493:59c9:ebcf with SMTP id ffacd0b85a97d-49831432d19mr2784950f8f.57.1794297106680; Mon, 09 Nov 2026 23:51:46 -0800 (PST) X-Received: by 2002:a05:6000:25e9:b0:493:59c9:ebcf with SMTP id ffacd0b85a97d-49831432d19mr2784920f8f.57.1794297106193; Mon, 09 Nov 2026 23:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794297106; cv=none; d=google.com; s=arc-20260327; b=CqqUI/n07JrCZbqsfyDxyJRvihdaXRgtlcwMXJYS/a9VYWChcryisGfxzBUmwQ9Ptj FGKKNSeHTGthS+MWnkfEsk90zS9nDBnD4pSZlBgsTdElA0FsjmNWQPSu3xqbiNRM6bL5 yIzXd4tOid9Li7wwrpzLitL7UzE47SnwNTK+/xndklIQ1nQIMu7/qGV/EqYl4EQvo0bh ziyQUlQ50jmCgTsEAvlvS+6Vgjyw+qPhS6t7TpRX2vIZPMxpGHzlD34866YdsuA4X8Fa 1rxngDWRmi0fEFp+aZZGuvgXG0BH5yYIGiLmFF+oRF8odM//pTnMvB5FXB3JAbeYLAME i29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=5ADZ/X1vYO9eX3KcFpVdEKlmR5E5OIVBs15URIv0ESI=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=dyUBKo2IeICFSshOfR+KQR9LW1IRUxUsasZWE5D65vX7eTmRLEXFaqg67yRKQSfh06 fDiW4Zh8oAl/MPgyTKoTxfDqoggtUP8pR0coN2qxNO1x43aVycQKPXWfD7xuP6brJEIS URnDGb45xDN5kQ7UZ+MA+rA5suAUN1jmTl4LD3gJs4+V4u6fIxcbDD8CifPnSiJSYR79 F8SKFPfxkrBUs3gEV2tNLJQ6rFVlxwzEQ6LC4ILQN/LK8iAm4WSLWWO7TZFj4q2tnfGB IkIpr39AaDe2C31oFe/x/470EiUg7MKGQXF5POYLekgwvLldVTszFAXQxnZYDePwBTHC Matg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=S+kKkmdV; spf=pass (google.com: domain of alexander.ivanov@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=alexander.ivanov@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-498375233easi3468889f8f.353.2026.11.09.23.51.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2026 23:51:46 -0800 (PST) Received-SPF: pass (google.com: domain of alexander.ivanov@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=S+kKkmdV; spf=pass (google.com: domain of alexander.ivanov@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=alexander.ivanov@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=5ADZ/X1vYO9eX3KcFpVdEKlmR5E5OIVBs15URIv0ESI=; b=S+kKkmdVI5++ jbvrOhyXs6Iyqz3J6NrQbdRt2vA85W9OEqqhfwNj19AV05Fn6YNU1HH6+aygxppEJ/HUWzAn2+1tG nmmVns9eX+DUOrsYBaTDFDMD5TebcbE16vNCF1W6QhRl8rsZKmPAM2oVikC4jBH9zlBRJobVL841T EhI1hKWSYehFeYZqOU5qSoFctQYQYRXlwcgrYzhx70ihVO+Bzpiw2JXnjRQF2Fw4pQomEBHpxE9+W QN+SdqYnwBa9qx18eOapbHECtDBQrdNEvQSPAFtNg8werCbnpSXL78K1b9nbPDkDq6GRH86BqWPWE JVTzPKpa4P2/ViSsL/UGGg==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=sky) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xQgZo-008dOX-1E; Tue, 10 Nov 2026 08:51:36 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 10 Nov 2026 08:51:36 +0100 Message-ID: <20261110075140.1475607-9-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261110075140.1475607-1-alexander.ivanov@virtuozzo.com> References: <20261110075140.1475607-1-alexander.ivanov@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v12 08/12] dm-qcow2: fail the L2 table allocation request on L1 writeback error X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org A request that allocates an L2 table waits for the L1 writeback on the page wait list. If the writeback fails, the L1 entry is reverted and the request is dispatched again, so it allocates another L2 table and dirties L1 once more. With a persistent write error the request never completes. Queue the request on the wbd dependent list instead, like requests waiting for an L2 update. It is dispatched again after a successful writeback and ends with the error after a failed one. https://virtuozzo.atlassian.net/browse/VSTOR-148171 Feature: dm-qcow2: block device over QCOW2 files driver Fixes: 222b6f1291c1c ("dm-qcow2: Introduce driver to create block devices over QCOW2 files") Signed-off-by: Alexander Ivanov --- drivers/md/dm-qcow2-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c index 995f611ae5bb..7f61ff67646c 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -2616,7 +2616,7 @@ static int prepare_l1l2_allocation(struct qcow2 *qcow2, struct qio *qio, * 2)For COW from backing file this is must. */ spin_lock_irq(&qcow2->md_pages_lock); - list_add_tail(&qio->link, &map->l1.md->wait_list); + list_add_tail(&qio->link, &map->l1.md->wbd->dependent_list); spin_unlock_irq(&qcow2->md_pages_lock); return 0; } -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel