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 640DD80063 for ; Tue, 1 Dec 2026 08:51:32 +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 6B18oEOZ021205; Tue, 1 Dec 2026 11:50:15 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B18oEOZ021205 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="gPvaDA6C" Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B18oDrr021186 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Dec 2026 11:50:13 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B18oDrr021186 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-6ba810fb766so2088029a12.0 for ; Tue, 01 Dec 2026 00:50:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGpkXNb0P+dlYgclMWf9QtZScc6V/UK/TcTPEE1u8GIx2C4RmANjD2ElisAUDAqQpg1z6m2tw==@openvz.org X-Gm-Message-State: APuU4Z/+liWwOTBUy/ivs97pS1T2Eu3SmlyxMV9ZdBzHQZpSs+4BSmnu GyALEkvlkdHQzJLa4EfwiyvVjOXi2llLLmOj1zWOky+Ke5wncsxZ4GlVoka6X3kmPWptpKIaLVm CFGfdA9iJeyOzC6Zcas49B+W3kmc/IKfiesaWLf7q7pSWLcZl8vdtBg== X-Gm-Gg: AZFdTZdt41wmrW6j8RuBPFVRpVDVB/Pji6iN1Hpz4juIW8afnzPtSDGBXwmHedjZCry KF2NxdCyehHn2mYBRykbvTFXFreygpXAU9BI7hwq8g3UDbT4L+JOY+XE/8sonDbhtQNM+I13bgT egI0A+/eiULnlYPBytfF16ugMyPjsqRHusfgqvzHR0XEzhKmAbsF9cFs22Kh1v/cYPYY6hjIwf8 cYuZEfeIEyqx74H+ix6DH0ol1sJUEbSFCP+PUbO2dPdDRhDBah4K5kccGyrUWZpIBWkFMhVx0jU xuqo8dXT7uD9KOUqblf78iqjTNBtCEW6+yBRddoUAHEh4t3c2N+WwTfSciutFhDu5ycbPtJX7JG pkm03C/G1aykLVe2dxj0b5Y/CUifo X-Received: by 2002:aa7:c614:0:b0:6b1:c2cd:dafc with SMTP id 4fb4d7f45d1cf-6ba37e96ebdmr18237682a12.20.1796115012936; Tue, 01 Dec 2026 00:50:12 -0800 (PST) X-Received: by 2002:aa7:c614:0:b0:6b1:c2cd:dafc with SMTP id 4fb4d7f45d1cf-6ba37e96ebdmr18237671a12.20.1796115012509; 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=k3BggMxNDp+DHelwVy3HUU0MChj791JJNd+4CjvUpX+1/BR1PKBwJ24Ny17OlLcgCW HttkUES/9LzwAXKtQnT2DmX6atI9f6O3BYS2an/4F4FueWkkVD7cN+6EqLuPnIbRLwCn WJqktNhbnfO2bQhzLjhXsxPfADYwyvijYDHooUwhV+PaxmnDuFL6wm4MRzCO1SUYFIv9 FfaCQNoD8sw8Kb5CBrWkBgprhTc8KrMaMRT2NNnqK8P633ZAm3qz/Xtiknm3yf7MKbVv cRNUxnD3lkZfIxw/I9kyZsToGRxN0p6gOogAiEMOZOD1EP4Vi/pKnsCc8s073BXb+0iD sxCg== 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=wugsxHzeKYXMpnmHqhTiyq8ybrReDKlF+I4KMPtCIIQ=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=Dp3hcF4pl+YcW8PCZJsY3E52T88dsXr6TWAxgFRQ2HobBr/MGp3n6p3caW0ECUPcKa NTHK/ENCw/f3VVgfK+oEj+X3exVC9FfOKqEjUnI+zfRxQMN6VYo3Ofi/wtoHw90UdnG6 XQnNNR22p9Ep42ktQ/x7WIBxu5RpS/juPqAbx5l3jYV3XLMxdgqyltTr5QIllKmcM4t4 +su7HEwB5909pBbYxfvB7MJWFufVonMYgzD+D0I6t5jRgmbcO7TvZd2qdLdt9jgWJD86 iIpd+BYwQq4GwwIp7virGC8jLVkF9EOY3NdM23VE/DBwMshkuCqYpVJYhBrD5+DKSFny Kf/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=gPvaDA6C; 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-6bb9e2ab08bsi8528909a12.269.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=gPvaDA6C; 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=wugsxHzeKYXMpnmHqhTiyq8ybrReDKlF+I4KMPtCIIQ=; b=gPvaDA6C0OvS K0pkHZ7Zw6g8zd9MCQoG9XMKzFSfcwsnVWpN+m/KXrTFT12/gPYCm8LWzaeW0wpubNgxRILhbjCrz i1y1MaQwf+VPUBvArhTmZf/jS6+kLgdbra/8qJua0ySqakslnJk/IeX/jOI0RP45IPo/9dybLe+xR ncGJAMvqSBG4r7T0TX5wHXLZH/sC+sr4whZl0JJbj0LS2X4K/ex28YH/LaZSMhgN1hp5Tosmnf13T evxAdcZMWfTQv2tgs1gFPTpQ++9vaaKB3oOh3+l2+91prq7YjJPcwuNAPISmfBRuQ5rEzPXy7QZlW R5uKT8Olnnf0ydJp/0omJA==; 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 1xYJYd-000HJA-2g; Tue, 01 Dec 2026 09:50:02 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 1 Dec 2026 09:50:03 +0100 Message-ID: <20261201085009.1884844-2-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 1/7] dm-qcow2: always resubmit delayed ENOSPC requests in presuspend 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 qcow2_presuspend() skips resubmitting tgt->enospc_qios when timer_delete_sync_try() finds qcow2_enospc_timer() running, assuming the callback resubmits them. But the callback takes the list at its start, so a request delayed after that stays on the list, and suspend waits until the timer this request armed fires. 2f9926b51be7 replaced del_timer_sync() there with timer_delete_sync_try() in passing. Wait for the callback with timer_delete_sync() and resubmit the list unconditionally. wants_suspend is already set, so no request is delayed after that. https://virtuozzo.atlassian.net/browse/VSTOR-152175 Fixes: 2f9926b51be7 ("dm-qcow2: Rename MERGE_QIOS_MAX") Feature: dm-qcow2: block device over QCOW2 files driver Signed-off-by: Alexander Ivanov Reviewed-by: Sashiko --- drivers/md/dm-qcow2-target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-qcow2-target.c b/drivers/md/dm-qcow2-target.c index a109392b9bdd..dddea4af21a4 100644 --- a/drivers/md/dm-qcow2-target.c +++ b/drivers/md/dm-qcow2-target.c @@ -1168,8 +1168,8 @@ static void qcow2_presuspend(struct dm_target *ti) qcow2_set_service_operations(ti, false); qcow2_set_wants_suspend(ti, true); - if (timer_delete_sync_try(&tgt->enospc_timer) != -1) - qcow2_enospc_timer(&tgt->enospc_timer); + timer_delete_sync(&tgt->enospc_timer); + qcow2_enospc_timer(&tgt->enospc_timer); } static void qcow2_presuspend_undo(struct dm_target *ti) { -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel