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 0155480064 for ; Fri, 27 Nov 2026 11:17:15 +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 6ARBG0Sv022231; Fri, 27 Nov 2026 14:16:01 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6ARBG0Sv022231 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="iJkevB+F" Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6ARBFtjY022181 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 27 Nov 2026 14:15:55 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6ARBFtjY022181 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-6bb082d3146so1105127a12.2 for ; Fri, 27 Nov 2026 03:15:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHJSZFiZM03jcJjDCP6zYsx2YbUjaxotPMVJxoknatqQA8jkpPJL7KguUzBrhIBPGgJBZALBQ==@openvz.org X-Gm-Message-State: APuU4Z+Zcrp5mdIsl1QDehVNuVolbmo9bc61PoAd3xqArJPGVLJ8/+Df 7BGh/RhNo3kBQTNir728BqIsJFRUJCc7cce0UDgny0aJQZCaDk4XV94TMwikh0cao7D5RVQa459 ben7GnOKqpZpc2kJRqTT5CvlbT8e5oaHSfHdQQid/iNIt09dFmUB3IQ== X-Gm-Gg: AZFdTZeGbNBupkcJC5k/GR9K6ZHvz2fhxoN+zCy9anAauERpgy5pmZWygTJxNSk1Sb1 Vkoe0kDXSnQLp4+B0H5di2HPyQG8ZBsrmhqGZg4BkpytlnGlhdd8IIsanSLbnaVgDxzObx5cSMI ouKick05ivAK8tJa8z3/v3C9ghT1TJyYGlGkKqKJp+08x/aNaBmqipXXU53xfd81agT4ih/lDjG 88+Nm/lerMcM7ZcpqGnj/XuQiYIQ/Knv7Tp+LAeaHZfFU1hJAUNNYHORHYU6q28zOmiWTTCsqok vsupiN1kzv92/VD+U9WDo4lpCcClHC5IeMkRhSXDvakVzSvG7DVlXCTjQJYCe+zUUuecSo/7WHw aMvlq3D95t1VmQLbAz5W8l09Qb9s= X-Received: by 2002:a05:6402:1e90:b0:6b5:7d7b:8e9b with SMTP id 4fb4d7f45d1cf-6ba37ebe4dbmr19068822a12.39.1795778154845; Fri, 27 Nov 2026 03:15:54 -0800 (PST) X-Received: by 2002:a05:6402:1e90:b0:6b5:7d7b:8e9b with SMTP id 4fb4d7f45d1cf-6ba37ebe4dbmr19068796a12.39.1795778154267; Fri, 27 Nov 2026 03:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795778154; cv=none; d=google.com; s=arc-20260327; b=XX10qoDXirC+QU/YH3daqt8Qr6CAparfgY91NKfttaiwSWZ8ZAsigyStVvzoO6LYLy g/J1F4CxdjHc0OOc8N0ZsVDB11b855u4knfe9oYfI5OoyDDrP1mO2UQouDODFHxtL04r KcBdd4sWeQdd10RdDyY9THOXdbpujxKlt3SaHis4oiW4ktazmCiJjKBgRBTOQVY2sQcS 0t+vaGOhTFg23b0IJBW0hy11g8517uR+Dw3YV2VpXGwitKXhYgHYSV2wk2IzQDqb+bc/ i1VA3Zh+Uys/c8lhiVm69StvtbnhObDWDtXz5zr1Oz0UMYv6uzsqSkHsRxOWXXBnTiH7 s9BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=ZGCJPr2c0kz39cyvPL3tuxQma+f9qi2EOxR/aFc5a5g=; fh=CMILZ+goaghq6B4UpCDhf0EQp6kYD0LAlmOkUiVCOvs=; b=ac46B5l/yq/ULvDzzbvdjoIgGJ3hAobcoBkEgQ/qh73m0rK3PFT6hGmsUt6TxUKIjK Cfsi0MBGMDnaeBVeAhYKN4smk6eBDS/d/aX9Y7U1zBQ5EjOFVYhFab2V2CjdXTtStGmT zvQD9lvm436MtP6pphHSN0eUHUjCTRzi1ZeW1Ec9hiYPayp+zVH+B29JbXAmKDj2hhFw a2c1EkboLqz7L0YLC953U9ibZt5v0kCQRZo8/erHiiSr8oG3iiZsHCJgpFnAFlhxc3In EdpG9O3zFXjkTjI/iZ8wQ5+gr8l6flSPudJqp+E2FxXvhpDddkc4qZvFqk1LxYpbUD2b Xhyw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=iJkevB+F; 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-6ba37396dc1si20190300a12.182.2026.11.27.03.15.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 03:15:54 -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=iJkevB+F; 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=ZGCJPr2c0kz39cyvPL3tuxQma+f9qi2EOxR/aFc5a5g=; b=iJkevB+FUoeG cu/rbgc1XSW1hm90otm+H50OJ7SGjeofgmqQmHIIwYuqU5Nbe8TgJH/gRjBRGeD3AsCbfw7s/hB2Z QvuGjRfePwnmp1IulR5w7iqi1BY6rqSGwwYKuwnp3gUokSX1/JulWUWGnKg6Id0S/j0dmRtj+BT8R /Z9hSVz5t2PT+H2qvr5lRK4V9hNfPs8kEahv9xdph4N2AKfV0IJzLciWaGkD+hPmZJJp38ppu0Ate g3ENY9OtiDvd39da0howYJWAx+ok2UqjICyEP4F+Sb1/myuWCJ7IIRPifzQQPEX6WEU9+9tQYHrc0 2GFm+TSK8+Ke3xRN0KCJZQ==; 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 1xWtvX-007zVg-1P; Fri, 27 Nov 2026 12:15:50 +0100 From: Alexander Ivanov To: andrey.zhadchenko@virtuozzo.com Date: Fri, 27 Nov 2026 12:15:43 +0100 Message-ID: <20261127111550.1151546-1-alexander.ivanov@virtuozzo.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks 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 dm-qcow2 and dm-ploop delay a request that fails with ENOSPC, retry it every 20 seconds and report the error with a dm event. QEMU cannot wait for dm events or send dm messages without CAP_SYS_ADMIN, so a VM on a vhost-blk disk is never paused and just hangs until space is freed. ENOSPC of a VM is to be held in vhost-blk instead: it keeps the failed request out of the used ring and signals QEMU, which pauses the VM with io-error and resubmits the request on resume or after migration. For that the error has to reach vhost-blk, so the dm targets get a table argument that turns their delay off. Containers keep the delay. Patches 1-3 fix the existing ENOSPC delay of dm-qcow2: - a suspend stalled by a request delayed while the timer runs - a retry postponed indefinitely by new failures - a WARN on a read failing with ENOSPC, fatal with panic_on_warn Patches 4-5 fix the same in dm-ploop: - a retry postponed indefinitely by new failures - a WARN on a flush or a read failing with ENOSPC Patches 6-7 add the report_enospc table argument to dm-qcow2 and dm-ploop. Userspace passes it with every table it loads, and the table status shows it. The vhost-blk, QEMU, ploop.ovz and libvirt changes follow as separate series. https://virtuozzo.atlassian.net/browse/VSTOR-152175 Assisted-by: LLM Alexander Ivanov (7): dm-qcow2: always resubmit delayed ENOSPC requests in presuspend dm-qcow2: arm the ENOSPC timer only for the first delayed request dm-qcow2: drop the WARN on a read failing with ENOSPC dm-ploop: arm the ENOSPC timer only for the first delayed request dm-ploop: drop the WARN on a non-write request failing with ENOSPC dm-qcow2: add the report_enospc table argument dm-ploop: add the report_enospc table argument drivers/md/dm-ploop-map.c | 23 +++++++++++------------ drivers/md/dm-ploop-target.c | 9 ++++++++- drivers/md/dm-ploop.h | 1 + drivers/md/dm-qcow2-map.c | 23 +++++++++++------------ drivers/md/dm-qcow2-target.c | 29 ++++++++++++++++++++++++----- drivers/md/dm-qcow2.h | 1 + 6 files changed, 56 insertions(+), 30 deletions(-) -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel