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 6671280033 for ; Mon, 30 Nov 2026 16:26:18 +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 6AUGP4XX019636; Mon, 30 Nov 2026 19:25:05 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AUGP4XX019636 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="T+A2q52h" Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AUGP0IN019593 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 30 Nov 2026 19:25:01 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AUGP0IN019593 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-c505eecba6cso805204366b.1 for ; Mon, 30 Nov 2026 08:25:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGOOXCS//B1U5E6u3e9VrLxLnCPhtBYBf7lV9p1tJ8k1bHD4O447GNuhcnH17tvVpa3DWs9DA==@openvz.org X-Gm-Message-State: APuU4Z+dWSFFbbp/quoGZY0Yj2KYmoublNcANPMwOVtlbMJssCieLRBs IofXQR7N3pmekc76IHwnD7aKRXXVkiOVMcZ0sna4FWL3X8p4j5vwDdmLZrFxlPw8lmT/b4sG9XX HcMnI3p+eDSE9L0E+EJ3vMPgHpZ5yk55vBxdnZldP026GWfiV0FYjTA== X-Gm-Gg: AZFdTZfHo11lGsdykridbKS31Eox8yrt34fPwtfTgvZp7IT8PKn5zHgG9tP5krOULAp 638vVpVozCkR76cOKcgBpoQ4KynGHgCZxAH6f9FiLiwuF9yZRV28dqI+YAHKs/xQl8z+IpjnNyi v4jT/paPjDjZ6Yw6vlF2i+M4aBXczagSE3Zk+BhU3f8ZI7U8nyoIY1KcXjUtsEwVpww7MI3/XCO dh7fOO9SaWa/IPVzC2dsd16xFzJbJrC4XvnhTE1QrFql7qSQ0AHXTyvZB5LUAXUTFBrm5At22Wj 2hb7vMkxzOJWrhP68LefHf8c91cttCkITOlKOLouyOUl0gkvQY1FC07l6ciZVJmr723xrzLsb4l /kWuU7iT+Do0Uy1tpkOCn4qIRS28= X-Received: by 2002:a05:6402:a594:20b0:6b1:c7d9:b631 with SMTP id 4fb4d7f45d1cf-6ba37e75977mr19132759a12.23.1796055900553; Mon, 30 Nov 2026 08:25:00 -0800 (PST) X-Received: by 2002:a05:6402:a594:20b0:6b1:c7d9:b631 with SMTP id 4fb4d7f45d1cf-6ba37e75977mr19132753a12.23.1796055900054; Mon, 30 Nov 2026 08:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796055900; cv=none; d=google.com; s=arc-20260327; b=JSa9lI1YL3O0g5CTnKBtzxJ6CRgaht3D7nPOl9a0sc/vbdch2pFPPr3wxIpmpJlZj2 4buObExE6gOJgjTIpSV8n+XawM3JXtQ8hIBOt/c7ztADqCTXSo8UlMe5I64w/9DIkzz9 H8CVUg7O+JGGdMgYwSP2DZ3FX4IJyeWrnAgzGVkFeVSGJPx2mdiTdcFJ8hvthuHUPh9B yJJ4YNOfu5apaLdcS/Gmcm5HT2CpVRIj+yRF3mLEeg7pJ4fMsWZ0BRtmexLW5t6iLNHo swmwdNqftO5FgOr9ZOlhnpZlYFr1QgJqHgHe3PZD/olJHG1dikXZerZhYgxhvAXNDiGG BRAA== 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=rxLhlE42Rg2TQzBC79Wlj3qW7pQF4WdGcZyMGi3JVWg=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=lvOP+cNfFIcfy7PbXz1/ovPE0weVLPI+eITTn3KKUBmekXelMOAmZ47gPp7HQ2aGv1 Q6MLb0p0m29glshPYIwjJIilIWSk/KrUeU8Iykh76CejKhmTCcWkLSYgMzdl//qJ5FS4 b/wFu0s+igSEsGBF0zZZGkhtfbrFC+oKhxtqdRDXKZspkKimCjMVOXUQbJBEiNQYBhsT Vkn5zuUNCgqaEGnPtPbWSWW5GshqJMIc4amK+xa66FNQbOHTca9Ri7tRn3o8gD1WAAx3 D2y87wt09Mz7DL6bkShSxRqS2knsdFk90vB39tefJ4J3J7iLcRSjnZwMJYHMa52AJhVp yB9w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=T+A2q52h; 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 4fb4d7f45d1cf-6bc242565c8si870578a12.157.2026.11.30.08.24.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 08:24:59 -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=T+A2q52h; 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=rxLhlE42Rg2TQzBC79Wlj3qW7pQF4WdGcZyMGi3JVWg=; b=T+A2q52haeH/ i+uqQ3NcNLrEJWEpYbTQ2EPHts2BNX6HOD/gpHuhgqydtlLZNc33hKOEKHf2Lcc+7X4rof3aeW7oQ X5ZCKbSBpvVihXXkghXzKSPsvNsWx2AJS+qEO/t8zWKJYCl72zFllFpv9VyhoZHSG/0TwctGdDRgI nZUyI1w98WB2MZbeEpxnyXV0S4I5WgDge5JJNSW/PL00Usj+s8/JJJF6vJO481hYhB0kxN5BbianJ 1VJQjOO4QT5gsMUUroshjPvvWKcZIWafG9NaRj1IdpeGouCMK5nO6OsvDn+7cVVhjrP/N2zFEMMUb 9LfagBjBQ/WuPZw2/QEhnA==; 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 1xY4BE-00Gm7s-1j; Mon, 30 Nov 2026 17:24:51 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Mon, 30 Nov 2026 17:24:51 +0100 Message-ID: <20261130162456.1822406-3-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130162456.1822406-1-alexander.ivanov@virtuozzo.com> References: <20261130162456.1822406-1-alexander.ivanov@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 v2 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request 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 Every delayed request rearms tgt->enospc_timer, so while new requests keep failing the delayed ones are never retried. A guest that keeps writing to a full disk is enough to postpone the retry indefinitely. Arm the timer when the delay list turns non-empty, so the delayed requests are retried a fixed period after the first of them failed. https://virtuozzo.atlassian.net/browse/VSTOR-152175 Fixes: 6e2ec304689f ("dm-qcow2: Pause IO and notify about ENOSPC events") Feature: dm-qcow2: block device over QCOW2 files driver Signed-off-by: Alexander Ivanov --- drivers/md/dm-qcow2-map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c index 6be270e6c12c..0c4fe1ae767c 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -4697,10 +4697,10 @@ static bool qcow2_try_delay_enospc(struct qcow2_target *tgt, struct qcow2_rq *qr pr_err_once(QCOW2_FMT("underlying disk is almost full"), qcow2_device_name(tgt->ti)); tgt->event_enospc = true; + if (list_empty(&tgt->enospc_qios)) + mod_timer(&tgt->enospc_timer, jiffies + ENOSPC_TIMEOUT_JI); list_add_tail(&qio->link, &tgt->enospc_qios); unlock: - if (delayed) - mod_timer(&tgt->enospc_timer, jiffies + ENOSPC_TIMEOUT_JI); schedule_work(&tgt->event_work); spin_unlock_irqrestore(&tgt->event_lock, flags); -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel