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 0C8F38017D for ; Tue, 17 Nov 2026 10:11:53 +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 6AHAAdpJ007792; Tue, 17 Nov 2026 13:10:40 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHAAdpJ007792 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="uuDxRhNG" Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AHAAUpf007745 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 17 Nov 2026 13:10:30 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AHAAUpf007745 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-499ca65ae87so393918f8f.1 for ; Tue, 17 Nov 2026 02:10:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFYgdMe6e21VUyvVs61635xp6UTiCslxZK2nZNgEDXdC8ku0yLLIWEOfXDyC1CYFpPvXQZhnA==@openvz.org X-Gm-Message-State: APuU4Z/qbft/gfOAr3o3oBttlI13b9ljUdtxJBHLtk58R6KTrSix2MVa OUQQguluhEgPkcSRSQjyC2ZpwWkFUG8qzQGnXOq+FlLrJp81z5mvwecWYIKEa2zEK0EJb33ReVg 2pCy61MFhOz3lFLEpVdwKu8UD5xVbpblT1xVYimqWKJeZRsdxdJeYnQ== X-Gm-Gg: AZFdTZfW8pQDJqHV5ZE8+SJXq4OL8963ZrNz3KHgix68UF8HgTcCRzIkw3CoysYwh2y UAh8SdMHAtufUjTVPPqxz7LBSMgCUESqlxSuS2pTiPLEHj8JPdezgFYF6c8Zb9FkCViY4oLSrU1 fxHWyyv5PJx/zgwyNs/dxLmnIsLQ0f35Q6fkAqwtU4Hv7T7zntd4oEFwI+EUtecpzeEoujHC1A3 xQXPV6eJPtG3exQSpSPxsyGOSg9nCzw+3JaKUCNM7jc73dAbVBvQG51qBOkdC/ASxWKv/h0PvQQ vkm7RBsh4802M2wD/ApK81+pwKsrxYplRXjoRdZYgIw1BB2wfaDl/YEKEIU1sLww8krU3yGP0zs EjLq8mjnyH1u9vYwJCUfPr8oz1aQ= X-Received: by 2002:a05:6000:4b0e:b0:48d:f852:c66b with SMTP id ffacd0b85a97d-4a3771eebffmr4076631f8f.22.1794910230170; Tue, 17 Nov 2026 02:10:30 -0800 (PST) X-Received: by 2002:a05:6000:4b0e:b0:48d:f852:c66b with SMTP id ffacd0b85a97d-4a3771eebffmr4076571f8f.22.1794910229582; Tue, 17 Nov 2026 02:10:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794910229; cv=none; d=google.com; s=arc-20260327; b=d4Zz2ULBSWgSX7mKwc4Sc2S6cCKKEcHfEynJN0+EDfauRmQsNw/SuWqzDMgoW3R50w qCW63Vla6EL61vGf2exGUNDboN78iaJYA8bKujZ2IuDuQy4HTcPLzwFIFst6sgn4+Y7O x+ll1zO3+Bzi3AxOaMOzUpnMj9V4tKxvIM439zsGjrdT4sDYcNJtsVC16pVLkt3g03pT GNqI5yerJmE4v7phm83KIaPp1AAmqellKiSUNaZdq53MGob23NFsl6C6z8cDQvurQ7bk I2Mu34CatBLy3Yi9ZFrYqmEarILjSf2Ugx5KuyBl7IRFgXD8KFk+U5d3JNJNRm5j1+uE ZxVg== 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=mAw90PngmpeERYhHMsSCaA/8vKTCaVP/HbGt0GcxvZ0fr33hel4B4q0XtChXnI7GOT H8BmyktFwBuBJAICcX2Ut52bHj84PTDUw+OcNEI0fgXjQNU9ljMPqzsulwxvE/HKJvXh fOmS136hzQDD6gx75/TnixFh1hrWj+jNUypp8QH7Y1uC9atEFprAAPcbsZa2ahVlGgrE Qy4BcaUmBcOMjWBQ1AQpOBBPX/2XOyZ9XSZjR/VPG/ZTi4PFK6kM9AlmL9aJZG76/D7j DHijy3vjkptgcsVy0z334i+7Gi+IPtzMzlgd0F6+atYL9CU89oJ5KMN5RXYb5n0akeN7 TMgw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=uuDxRhNG; 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-49c63122087si27428143f8f.116.2026.11.17.02.10.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2026 02:10:29 -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=uuDxRhNG; 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=uuDxRhNGc+tW QRYl7kd6J3nJvOt7gDO3xXVG1ZDTSS7oW1PnrmlSlq2qPG+2MfLL32IxBxzie6pZjJmcbvt2xn8Ri zJHLm+yeL/lX3dCGAbTLmrPibQML9SWB/S2pCCsnGjlTSWPVITBRMhxwa34eNnOl9+sT/6bt99j65 P3Lkm/8nWHncphDNBcP9GEq7kzK8O+OhwNx0HPZ+xuDT+hnQ9l4HM4AWVND6jcOhx0o8/pyOxclCY 9815uirA5r4OF6S8snnt5IoJ7ORC6mo8oShBtWiHLxJFn/5zm02z/QKdBaXGZZCsi9a2e8CfSr6oR AfDhraPliy0bLBRhqXwZfg==; 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 1xTG4i-009Isp-36; Tue, 17 Nov 2026 11:10:19 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Tue, 17 Nov 2026 11:10:19 +0100 Message-ID: <20261117101026.3071579-3-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261117101026.3071579-1-alexander.ivanov@virtuozzo.com> References: <20261117101026.3071579-1-alexander.ivanov@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v2 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