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 17ED980033 for ; Mon, 30 Nov 2026 16:26:19 +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 6AUGP19x019607; Mon, 30 Nov 2026 19:25:02 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AUGP19x019607 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Vi23dTnR" Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AUGP0W2019589 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 30 Nov 2026 19:25:00 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AUGP0W2019589 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c42888c50c4so953722366b.0 for ; Mon, 30 Nov 2026 08:25:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGCSzgBAYxBKjIBOIEPTtLKFj+lJMksfppS974SI2vgrgMfqaua0Av8LB242FLdkzCXKvlqyA==@openvz.org X-Gm-Message-State: APuU4Z9bHz3JhsbGx1oHxgAD9AHPrXt7H0/bpBD/cegM2WV8QAd7iATS /3K4W+FNFbD1dfWOSEV3rSbBL3AATiPWgXoP3V0wlpKo/55Tyfaz9yULHFq8z0tvnoghjLm69sN d+llNm2z6OSkbGAxaJLVO5e8xDwfJSN7Td7gFo0HZxligc6Y4Lqsvzw== X-Gm-Gg: AZFdTZdJeCx+tshKoymGsDm2yCizAyBvWPkzCfn4jvmA2V5JuxySNwFV8yJTo34UfY4 0RXo7x4AnmGqkZNnO/iOldnVEvxFoY/THMwucssThPp4GphFc1JTV3AXvOEC2OBPluJeFONVTqD 9zUhvF2q3QUMQjHKLfFheY/SscLSIdPux4n1lEqnGlW3l9yxqLq69RTeRm0UvrsIJtEIkLwQQbJ vD09OLRphSO1FNe1Mb/r8BYMRJF75VjGKGSvEmDijaIEhssgoCA303wDDXeepkRSlZh6KhtsoUs AsbsbR09xQz2Jyy3BYVMLLARYoaGBYjmRFlTsQFdb1P3FSbZX1M9icJit/+SBhc9Y+pjIlo/b5U oZPDnSZ19/0Y6U40u2HhxKRByyM1H X-Received: by 2002:a17:906:b296:b0:c40:4965:72c3 with SMTP id a640c23a62f3a-c513aac36eemr1927758366b.19.1796055900338; Mon, 30 Nov 2026 08:25:00 -0800 (PST) X-Received: by 2002:a17:906:b296:b0:c40:4965:72c3 with SMTP id a640c23a62f3a-c513aac36eemr1927756166b.19.1796055899799; Mon, 30 Nov 2026 08:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796055899; cv=none; d=google.com; s=arc-20260327; b=oZlWqHqLAoYeISFM3lVhN/Bv11Wxe6DRcOj6QbLxAX3V5/yqSjXgA06o0ncUkaXCRg COFRtPelpEcj1uBKbR3Zg/yThC2tzg5QvYiuT2zuJ+DKcXHUW14m2kiTuNzUNXxEIzrY zZUzI1ityftW5HB4IiD0UrxSlmw8hZ+l7rePQ2QJMCCCqYN9pO83VOFClP5HNKwpExAf JP0vDDv62FuD2qyxEd//V2OQvUNnx4zPy/zjytIDFeARpQJpuAI2UkdxN0/SdFk+ZyXN pCv4MVmNrjA4w3wn/dpnO82gHEbOOO9WsiSU6QSKckX76FYrG/Lj8NS0jgwKLjbInJlD kJqQ== 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=gSyqzWlYwpHwwYaL6bzKud2aY5AsfXGXQf4TKpsrPTk=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=T3YvGnQEGW8jz1K4fLn6jpxrU9aYISvU0LWUeLPzRmpf+EUd20mNpoPEdBylR2kRNp jf3ly8fT6g+e+36IT16/aYCcvMUQa6WgnGmBFVcPU1Pl1ulpiUYeZ2su0FxAbY+2P+KR AnV/53ZTSQKIJMoJ6IwycIYjlz1pM0v8GatodGSRaiy0Rv08nIZLRm1Hj1d618wuGNcq +lpfTF4prQZ6Am9xcr40mcATD9iPxWcKuxBZuSrtkpwQ5wejcZO2rGt/n3CweFoF8Uqn 1E9C1kKUjJNjXd3Qh/X69xSojhLxkI42xuUQhMpSHLiFxKgzAGIUPbw4ecNYxZIuhCOa z//w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=Vi23dTnR; 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-c519004d6b6si1324482266b.346.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=Vi23dTnR; 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=gSyqzWlYwpHwwYaL6bzKud2aY5AsfXGXQf4TKpsrPTk=; b=Vi23dTnRuK/N CRIMapm5nEYPMua6Xlv/c20VMWCOurphiMreC+aV74uB83Ehx1m1iX2oIGeUJwsHBxATmj2JSV1CA TySEo1suL8aOdb+uTs1R6m68nbPUL/RkbeW/Ls651DPftLCVWbtauiDQxYSkWM/2YvZtJr6Q07pUW gmTbzYL1Sy+5j4kFIY/ZjqDGIvf70foK9LEjJEZbfuwI3KXB5eEtBhLhPUnvvfpgd3Nm13YK9Hw5/ LaRLTb3b3y5brEsSZdxzE/jPQolgcsTQ5/fOWaBT9SWKjhua3QjTljV+/P9e7VQaVHw2f/ZvNtITa d4MVnWDmK7+HxS0Da4zqOQ==; 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-15; Mon, 30 Nov 2026 17:24:50 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Mon, 30 Nov 2026 17:24:50 +0100 Message-ID: <20261130162456.1822406-2-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 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 --- 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 b7754f6ca9c4..eb3750284c00 100644 --- a/drivers/md/dm-qcow2-target.c +++ b/drivers/md/dm-qcow2-target.c @@ -1174,8 +1174,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