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 BC86380033 for ; Tue, 1 Dec 2026 08:51:46 +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 6B18oVsj021293; Tue, 1 Dec 2026 11:50:32 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B18oVsj021293 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="AA6bYvgj" Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B18oDhc021190 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Dec 2026 11:50:14 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B18oDhc021190 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-c505eecba6cso856363266b.1 for ; Tue, 01 Dec 2026 00:50:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHKh+MbOmFG7Kn3pcFdHfWY3JKuQpFCUIcHh6Un0A80yEzVRArRjD/TBaEVizpClbO5ATXm9g==@openvz.org X-Gm-Message-State: APuU4Z/fx4cQ6LH5mkGcO+8cp+rPPZKmGj9hTovyPYralgaUNQ1j1bRe Ena1gNQTPw2hjrI6XDK/GyIuTHJ1oCDr9t9ETKqUUjOr/uamVSNYx6e9a8sso3GY9qsNdKi/8lk OFt9DKNlkgWmkKHbFyapkWks+i/7YGdqdFPdICZ7Qn1pT2NIFG3lw0Q== X-Gm-Gg: AZFdTZe1HNz51g/G+gY1z6sRP+KaUnX28ujvMnlikvRAyiRKr4nCTutXhGLxlNVPeWp RT69moS4VpK3reECd/jmaN/O1W6jkbgkd7zGgK5ooC8qjRRA/KtUB3o9dcfSF8eJSXT4CTQ2kn+ sPun5U4wnFSf4cWwZre7yPWHJBWldIuCTu5KcsEc6iBqFOknqCu8OAbeygnjf0xIyqAkpvpzI2p VpaKodzZqMQfh30fKgltDG4SJo8Ic+r728moPzPrKMN7GJGyJiSELf/A+CQmf3jRS/BBod+84V9 8f2U4F90p7w+FWOSyVrYSV/u5mExwHspJ0bTCaYTLcYyprw4zKnE1PNSSfNHd5TuYuktgt8KgO/ N5VUHTAQjCxb8tcpWtrl5RVj1llwX X-Received: by 2002:a17:906:ef03:b0:c52:7db:cabb with SMTP id a640c23a62f3a-c5207dbd54dmr594853666b.1.1796115013258; Tue, 01 Dec 2026 00:50:13 -0800 (PST) X-Received: by 2002:a17:906:ef03:b0:c52:7db:cabb with SMTP id a640c23a62f3a-c5207dbd54dmr594852066b.1.1796115012788; Tue, 01 Dec 2026 00:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796115012; cv=none; d=google.com; s=arc-20260327; b=KQMlhS9VOFl+GsSu+aJJuQznPntHV/lwctotQHJ6BwQSP3hhDruaKILNaLCLZ+MYWC R2GoKuIzxjbEv0WIwHTlWBYQ/wR8LqyQP/a8AZWaRSRgQz4Q/Bsngvp6qfLQsswluMrA IcKuQMEnCOdv+TBf1OYVMWBhNuE5B4fiMRanDL0ICUNqRnu10WW2RlfhXSMgHAOsDIPy UwmCBXyZlkBhCBNbbGamRiChKSaBxLOy+RZn589JTukmz0/8EQz7qo6u126DC6g7i265 dlnsbRJQJuVGwty5JhjyupGYnp4Tbk37zxOvlY70Qv4Y0MtnCH54mykZZCh4jjDmqLJQ AfCQ== 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=ZO63UUIO1KM8bd+erDadKABfz2vBgQgtFV5ErV7UvUQ=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=ZeBMGb1qWXu6C2JGYw88wCjXfR6yTp9Izm0jGvqb7gd/xagX9PjbvjneLJUn+UkNz+ x/hPH4YnWLnOhqjDFmpQPROYw9vVVYNWcnS0OJ8FKAahfvg5QurPBN9uoPUAG16oA0ZE Ymwy79SJM0MVQoD77w1x3A9jZiKFMna/JitumFNfTjhmYYbzNC7FWLqVbb80s2d8dhME 7oijeyzcMSzvmWuwaYV+UqREE8PXAIeb8DofilBRo9w0nOjnMqdvgKCjptc5cCNgVNRx GCd1Ztiz0ds9FchZVQ+l4j0iRUxX6tFmnH/W9iIgPGooznl+1TNNhZcBXsa7fE63xDNQ X3sg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=AA6bYvgj; 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 a640c23a62f3a-c513b035123si2240694066b.177.2026.12.01.00.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 00:50:12 -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=AA6bYvgj; 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=ZO63UUIO1KM8bd+erDadKABfz2vBgQgtFV5ErV7UvUQ=; b=AA6bYvgjee8Q d0EgEQ0rn9jWt8zpB+cZq+a6m6bDwKlXXm040XyXo5ztKuKiVBM62vqACO+RcypA/sk4fwS9L69YA nev+yse1FzDy5jpL+sGaoClxtxnJhoxrkMGwDvcM6zvATbrFey9d+/fxBE3ioUyZH6pVkHzCKQyfv IlrGxk+BXo/e8TUeb95Ux4duVRfxV29cL7P/5TayxwLCqi5tmjOCwJQI9LJR08SePbGIWoSQjejaP XK2FwBxsVHpTZk9O6IfzR1ALQnxL7k8hL10TugVlIqrzyDr1kKBuMI7sD2DFjOJBK95/PCV7H/9DX q/M1VeALs0/O6+R7oQE6ig==; 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 1xYJYe-000HJA-0o; Tue, 01 Dec 2026 09:50:02 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 1 Dec 2026 09:50:04 +0100 Message-ID: <20261201085009.1884844-3-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261201085009.1884844-1-alexander.ivanov@virtuozzo.com> References: <20261201085009.1884844-1-alexander.ivanov@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 v3 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 Reviewed-by: Sashiko --- 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 0313f3189ea7..107091492961 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -4707,10 +4707,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