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 194AE803BB for ; Tue, 17 Nov 2026 10:45:01 +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 6AHAhj3d008343; Tue, 17 Nov 2026 13:43:46 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHAhj3d008343 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="vdxjE7wJ" Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AHAhWqp008298 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 17 Nov 2026 13:43:32 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHAhWqp008298 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4a70b42bab0so7046505e9.1 for ; Tue, 17 Nov 2026 02:43:32 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEVo0iculzlNXNMuJ3nwKvK8jWdtaEVHrHXMJMW/82Dp0UDGStIN6GU6Mk5bfHouVBaXQCDdQ==@openvz.org X-Gm-Message-State: APuU4Z9ETGEoRzlcdSP35dGbylq1ftrBdxROCTTRVW6K5PLvOkGdts30 XkKSKuxuQZ+NCnsORmyd5Xo2srFqS2mXu0RPSLQCMDJ2gwnznHPyarYb6UKgAS9ElG9KRbLF3iR yvlPmHvORRZjYmQxpKEwHJFg7WRcdIN0gw5MYbEare0z1tZ7PgCk72Q== X-Gm-Gg: AYBFou0CS/0CZoCBFlR+YNHWSKLU7dtkuoIyhh7QsJLDZgXrz9Q3Z9vdDHOmjsbC3Oi lEdQ0jouiWIKaD8dguyfJSr4ynhJqN97RX2xNLHvpbeJQESyp5qoY1oAbWWExGWkcF/0uZMBrWP t8LonPZIcnGpYvME4UPlMQdcY5Oh4bZIiTvTI8SUMOHPAXNZ+sTdh2CDq5GertNdFbr+hL/V8HT r3ECP9tzgAJVtKy7vaeBSSr5nf7E4cGWv0ZhN0ldrvHB+Or0F2pDIT0naUVdYwKbPnUS7RquoJC /wyvthhV90fA4uNlcUyRZ9z5gmdwHqXGXj63nsNRlEWBC9CAAMOjaJJBUpCCrhgRvEnUoDEPAg/ fiSYacCaOPoQqS4443MVhk8kzU8jO X-Received: by 2002:a05:600c:5949:b0:4bb:752e:991c with SMTP id 5b1f17b1804b1-4bb784036dbmr42418535e9.15.1794912212290; Tue, 17 Nov 2026 02:43:32 -0800 (PST) X-Received: by 2002:a05:600c:5949:b0:4bb:752e:991c with SMTP id 5b1f17b1804b1-4bb784036dbmr42418175e9.15.1794912211831; Tue, 17 Nov 2026 02:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794912211; cv=none; d=google.com; s=arc-20260327; b=Bnq3wC1YHoLpwCfarFYzKRSiHtgFGV34uQ6snFZ9c+g8sAi7GNGg/+zoPv+vurhygF KdA3RZXmEWhcxDTtmyxFsyWvxZ5Wel4igUqvsWuBMLH1bVTHCN184Cb3dqhYfVqk1+2u PLRROobhmy0k1wiQu38sC2Ki3uzjgZa/WxIC2fdGnWiOcP4HZI79bb787Lzu1fled7cu o4ts1cWDOjrdo6jEhwyiV8LBwNt50UAvj4TU9Pk9ZVJ419VY/n7DfcJHGrbHiHhEhQcQ WUqNK2B41WUbpRuphWtFCWgNGPUHrFHcQK8uucDc0g9M1w9KnsTGKAsTOKEK/l29VCNg SMyg== 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=Hqn0Yk3j+jg92V8r8xn+q5cHuhcpKO7kKqzvBtAm7FQ=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=ncCs0V7NPNGWiYXxUp1LenBqOG0XlHpShta9j1NSqRNXwoLo9qXMO4n4FXn3iSY/mv umbIO4PyiIonWHdgrQofm/CDIqcAeaKh+qBxqqqyeV1G1BuqVABlmahIs4UwPiOrLOPn t/7WSYmZSWIAuXrwkdcpwc/lYGnt+rUuq4ZMUMYvJx8x5RjVxte4yjZTjmGNjgjP62er nGjZyo7QS0Yx1WWsrmPVd20r3KvWyVLz0QKvIgHi5OXV7chkK6D9ehXkeM20gSIbrOsM GS36QV7w50WA5k6Ay8MeSuwje7CC69H7IUwkvYcYN3XRrNiUIXSSRefrCitHFcXBXEkI twCQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=vdxjE7wJ; 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-49c63e98b41si27884965f8f.269.2026.11.17.02.43.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 02:43:31 -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=vdxjE7wJ; 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=Hqn0Yk3j+jg92V8r8xn+q5cHuhcpKO7kKqzvBtAm7FQ=; b=vdxjE7wJT8Qq cq/GW2yXMXycEhnFCw2aLsZnNKkG1EMmnil9XakjruQothSj8iF+PXrHQvOAopQ3EQuPa21fWowpz RG+nnwY1C6S+ijbHo13UT/ZTdI3qP68urEIcasvBRQZ6U9CDhalI2Pz8POnzxuuhlntHeVqJWzDy1 xtk13BGbQAKBhPeTcMgMvUrqSW7HUqoyh25gjR7/e+16cG0/CUtjEOfJuBuoUxbtoiwpfkMtiDAQd bo4g3tqobkJ6+CtysnZWsi1i1x9A17r/WgI8h4WB8F2sAugChScrE6jXQ71XAKLFhtS/R4NPLtT11 pph5fpKeLmn4MeCWppRqvg==; 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 1xTGah-009vj8-0d; Tue, 17 Nov 2026 11:43:21 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 17 Nov 2026 11:43:22 +0100 Message-ID: <20261117104329.3079812-3-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261117104329.3079812-1-alexander.ivanov@virtuozzo.com> References: <20261117104329.3079812-1-alexander.ivanov@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v3 2/9] drivers/md/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. 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 --- 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 c49b0f466867..aa0bbb6b4a97 100644 --- a/drivers/md/dm-qcow2-target.c +++ b/drivers/md/dm-qcow2-target.c @@ -1165,8 +1165,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