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 F0F658002A for ; Thu, 19 Nov 2026 11:50:28 +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 6AJBnJXD021467; Thu, 19 Nov 2026 14:49:19 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJBnJXD021467 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795088961; bh=KcHPIZi8R82d3jBceOD2R9Jy+0o87J7jjnWMeoUlkak=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=kPwJeiL0uDxxTW4tIRw3LRwDuJsedvtSCJvKQhr26Aekx5izu4N0dEyh7u7V34EgN Rf1ukhfJCQrdD5gEL9MDzzk1iaEjLsDOTrt+XMPX9QLGBSZes5H/5OHlmC2eHS/Ujo s3BbdyxdVb1jp6MTx4THTt9vXtNcLhiwfTKb0uj31gXS6PhuX4ut8rhXWOJmRG9jSz vSo+hLsmiGF6f7rAJUPlNrd/Lt4kWaQ4DsEJTrG1CWx0gTjCgdLgrwwFPYMOB37dMj MMmGRRCOYvRYnlAMFtNLHZYQlEJ74qzp/kXvVFHJh14AcPfRqXJxcPHS+P/5MNvk+r UQ/md+pY+LqIA== Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJBnHBI021458 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 14:49:17 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJBnHBI021458 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="V/vhCP46" Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4ba078abd78so15934825e9.1 for ; Thu, 19 Nov 2026 03:49:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGfTPjb1mQejdsmW8JT4U8NVeBvfFQIz0L0IyOsyzsjcOwtETaHe3GEZbxEpHGkxQmxzpZ07g==@openvz.org X-Gm-Message-State: APuU4Z/HO+oR/FXtaC8w+4ve0B91n034So22HzDfSa8ST6qbHXjojOoz x5TURtMoqzGK2QzxmNenyJWyY9/p1Lb2TfByuRBoo+zCpnTU2u9Xo/AhxL2ABmb5MxiJR8f1veA W9KH1ewohnLTy5IkD77tP3fjd9+/Uc9LcCBU3S3+Xhras+0eemuWg1g== X-Gm-Gg: AYBFou00+lOQuOHOMrSB0/Ro5p9vfBofcLOzTzOwiFwsFJCJiv2f7QDKaGp42HRaj2t tUM08D6iYZZ/TN86n11r8ximPk1X56ynx1qBcdtGnFp+76am1BGpT+clWNJNA7lV6Gxgq4OJy2n Bod4A6avNaw7HS2dpZh8YiqY1jYbh68r4/+LPyYIMEKuWBPB3W/tdkwFqUZsv0x5b6+EqsoU8/8 2LZpZJtAvRyf0rK0+u00YQ24xUICOGbsPy09wLt+CZzVENFHa2DUzyOIiJ7Oam7znVztR0QdpfK JAt2o6ZuNA== X-Received: by 2002:a05:600c:6746:b0:4a2:729:f7ce with SMTP id 5b1f17b1804b1-4bb7da12d14mr110995635e9.8.1795088957489; Thu, 19 Nov 2026 03:49:17 -0800 (PST) X-Received: by 2002:a05:600c:6746:b0:4a2:729:f7ce with SMTP id 5b1f17b1804b1-4bb7da12d14mr110995355e9.8.1795088957073; Thu, 19 Nov 2026 03:49:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795088957; cv=none; d=google.com; s=arc-20260327; b=EQVYZE9ebfJLThg6/6kEoGGrXV/030/lUAyN8gHBh80iT6A6+3BNhpERxW6TMdUKfY ShCqNrGEqtZlmLVCIYlS7EUUSNgRXioxa3XbiHsN+iRmtObUpgqkCpuSFIOxFKbsuI+L 0gaTmKKyYp/POOmqnj2v/KMZohtAzLKa7X/NWe7KwFBR0gclUVy31TpYmEwyvlZFUXED byP0fKlCg/TfCjFCJ4j+6HNw7fFW43R19jqOvQT9VHaYCjEoBGV+BrZjtCDaiFZFVAbV HLQQ8fNAjBgQ17ZldgUGw/XCyoXz5+A2viHZM+ky6X8Nw3Wv6Pu9fvg/lCw+u9L3zZOY s3jw== 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=DCwLO5CyKP7DPgRoQTgStE/yv8NoYxCS8mGgdFeaE9U=; fh=X2vYW19A1ecSJLrFJiIAKmoRxBO4kfH1Ocpg3az/Le8=; b=RjeSvNNeg+hM80LbJJKiAbovsaVwpv/RPI5x/h32REm2a8alp+TPBqhLmcXH4udN4x kAqJWrcqFItGOB1rk2vZhnL80Lx0T1DQhZv+SdjFuQjHeHXiBgN//+s2eSGhUA9nGZM5 sXEtu2fCxlmKVhdnLfxl+QxCKmcFurHGJ8fV6B1G/zZUrkdyqrJGhtLpaeWXSR37RVwJ dCXiqKM9cPrv9ohrxLlpHWLFdCqcarFMtcBxvbAEg2JLJ5K1HIroV7LNMXIT66i12OZB U8DeIdiDSXikbuQwsAQRGMuDjmRUSgygC7109jbtkeAGekyJZd2sgWehAoqTMTGe9sC5 jBmg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b="V/vhCP46"; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4bb827518e7sor5046905e9.14.2026.11.19.03.49.17 for (Google Transport Security); Thu, 19 Nov 2026 03:49:17 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) client-ip=2a06:5b06:b600:300:989f:a206:d03d:c3d5; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b="V/vhCP46"; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1795088957; x=1795693757; darn=openvz.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=DCwLO5CyKP7DPgRoQTgStE/yv8NoYxCS8mGgdFeaE9U=; b=V/vhCP46JZucV9h/VPpOXKI+xcbD3/gI/gA8/ns3sPTXMKqdCsHpJij266prSB2njB QE9coh0fwH778NUwFy2acCPsbiNPRuCgMqAJIZEqBuBqRYvIloi4IKTpfhwx/zXitF55 zRvDORnJQhy7DU++iddgPDEgilNAAiIAayJOeTenq24h0BH20/1d+UbayOcSnDsx4Hfc Q74xox4KnHb3DZmsb9IX2h3nNnsUkNghdqD4yRsxr2Shk4ugkgxGSgA6nem0VcNyvPZ0 UNRuN3lf8o8nWI4HMV/zxSZiWtY++N1aHxhNYLJ59A5wff7ZJNjpb85c+jsPGccymqTy 74qg== X-Forwarded-Encrypted: i=1; AL+hErHWzb5mAIESOrJ6JAmXgBmYvpo6VIdigNOIweHgRsbhzHT+SuV9G1cbd5IpX3vA+VaV5fhMAg==@openvz.org X-Received: by 2002:a05:600c:3541:b0:4a3:d327:6ed with SMTP id 5b1f17b1804b1-4bb7da23d3bmr115595415e9.17.1795088956660; Thu, 19 Nov 2026 03:49:16 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:989f:a206:d03d:c3d5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a65560b1ddsm9973486f8f.28.2026.11.19.03.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 03:49:16 -0800 (PST) From: "Denis V. Lunev" To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 12:49:12 +0100 Message-ID: <20261119114914.767536-1-den@openvz.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix image I/O completions using a freed target 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 Suspend waits only for the inflight references, so a completion in the backing file system's context can still free a helper qio into the target's pool, or queue work on its workqueue, after a remove has destroyed them. Make the destructor wait for image I/O completions, as the dm-ploop fix for VSTOR-155932 does, and queue the worker before the published qio can be ended. https://virtuozzo.atlassian.net/browse/VSTOR-156036 Applies on top of the series "dm-qcow2: fix the ENOSPC timer left armed on a removed target". Tested in an HCI 8.2 VM with a completion held after its request ended: remove oopses in mempool_free() on stock and waits the hold out with the series, and the ploop test suite passes in qcow2 and ploop formats. Denis V. Lunev (2): dm-qcow2: fix image I/O completions running on a freed target dm-qcow2: queue the worker before dropping deferred_lock in completions drivers/md/dm-qcow2-map.c | 7 +++---- drivers/md/dm-qcow2-target.c | 25 +++++++++++++++++++++++++ drivers/md/dm-qcow2.h | 2 ++ 3 files changed, 30 insertions(+), 4 deletions(-) -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel