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 6A76C803F6 for ; Wed, 18 Nov 2026 13:43:10 +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 6AIDfoU1025839; Wed, 18 Nov 2026 16:41:51 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIDfoU1025839 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Urcez/DA" Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AIDfnU2025835 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 18 Nov 2026 16:41:49 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AIDfnU2025835 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4b0a307487aso2224095e9.1 for ; Wed, 18 Nov 2026 05:41:49 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHNV77LMMIo/HjQ8Zqg7A0UXI4/kd6VNte1eEFI1F+oW2Ecv5kccuBruors65Xd1/3GHNOe/w==@openvz.org X-Gm-Message-State: APuU4Z+hGtJly1qsAuUs6wA+NwMpxZIdPr5LRYB1QQC7M8/zZ9IxW2HJ cw8/Z1j2qTdg18pIcsIJNV2s3PCocqyPoIblIIh/1tKTBc0fLRFR/PxkXfRsFW94/Dc8MNzqBfj Ce8oRi3bfaaTO9t0/bvFRb4rps+y0CGT3rDxcZxx1n1QL/M8s3HzkBQ== X-Gm-Gg: AYBFou1DieZnDefyHM48MXfXDUMPBcUlAu9qWRLzbehPSHck+13zJrKOmKYI6T2InZI 38bwhnhQ72UrFU3f6Hb71KodqkAOvn7DDxhoEmv3Lwr/177GlFknlX0yVVsWQyqEWPcWj85Y/qX us0hWDxI/Q1H2NzkOzGXO2dONepx2aTmlKvgKgClLiY7ZVEfbJarDwiWxOxXai7tFy3ky9rwVWS cgKGlJmB+YEvkAqZVwxnPzUtAqogKDGA13qJBZA/b5dn9pYKAp3pAtLtHcT3Q5xV4sU89yWwYYP 1in6WvFDR/0X8edNqGteA7L7mRfXOAF3MIrNVszaBPCwn+rP2qwqdDMnn2dNnZS66yH6LIsqXRA ciYmiHsrJxhW++Vhztw== X-Received: by 2002:a05:600c:4715:b0:4bb:76d9:f81a with SMTP id 5b1f17b1804b1-4bb7da3d288mr48555015e9.34.1795009308935; Wed, 18 Nov 2026 05:41:48 -0800 (PST) X-Received: by 2002:a05:600c:4715:b0:4bb:76d9:f81a with SMTP id 5b1f17b1804b1-4bb7da3d288mr48554485e9.34.1795009308431; Wed, 18 Nov 2026 05:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795009308; cv=none; d=google.com; s=arc-20260327; b=bNsKmw52fyXJN8LkEQxPKTrYxZjW7sSo+zEmmoXkvbWTzcVlJqUEsbWtNSkbaerss5 u0cs+8KUIe6S4J5RzlixECem0Nt2vwNu8HipsvVW1DUdxzsWfElCjNLkFkUfES0dJFqR 3cjFJuDHfHlmkeZUzr9lJEkvj4irUK1lYBpIVfSp4VFWelCnBYcjQIjr4qg74W+xVVVn Y/7QfikJn35R9AEifF1wEpchnZ7T6r4zqQxpjPEg21jR2nHoDBzVW/rGvECkBhkQhc5V 7Cbak9vS1PeRsJZrjeS6QaAzw+QaWzfLNNxq++WxMo4tzq73Hda1NIvkvRIiOdnxIpvD P8ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=OE20JyZ21SfuMCY7ueWLpG0IuozW9G9NcnJ4xBMVZ90=; fh=YDx/sgeCfUIZ9eyfBjqETg92hV70ladS2omuMPCV2do=; b=jdyIyb5fS4CkOTUCz8wbnkcNQFHSE7I2FscdCou46H7nbpCztDUW5KRXOQYMoDjKK7 f1548Mz06FXjDFnEkMh9tBX51qzG3lpUbjoDaFov524zZjwWdusfogi950HpaOJxSADc JzOgQ1gPQgZ6BroccT1Vij/CgzOVwkHTjRtatjKrIPlaFE/cszcMxJFr3jMfetopavTp Mzk8xFgbau8pHRQRSxlCDAtTY3Gbd+7iYB4kxSpYZmoL3Czon6rVV77xN/VfLWiMnd/o prGeTJMRf/WX6gLafk6vrLJRL8Nc9ImCxeUF8iJufEMO9r6DYvPHiHBQ8wVSpwOEObZo 0xEQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b="Urcez/DA"; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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-4a65a872289si5243216f8f.407.2026.11.18.05.41.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 05:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of khorenko@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="Urcez/DA"; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=OE20JyZ21SfuMCY7ueWLpG0IuozW9G9NcnJ4xBMVZ90=; b=Urcez/DAtMLM wcMZuPRdAET8z3sCUXebr5rGlwog+azXtdFkHyAdg6LOkh1HGPOT0A4z1u9wgS3HwrrMl5A5tkiJI of+DewyTvfjz7C/MDNBhd7Nh64iTcuIjNXRvLQZn7Qj1gZIFj2P1ihqGpEqe1WgqRCT27QbPtungG AfQu6CP5cL+yn3nO1wwJHujXQCVvXyjv55KuTgBc+xVVC/sLEdmER9u2JiFfMkdg/M0fagyL73IJk k1iCyR9Nt0d7y6s5kRiZR3ZyAXemDq3Qb0v8WzSPngOJ0DsaKkwgfBH3aQM1ir6qI4+IfQSNGqunu Q3dtB4NjaJj/Xh8YPP4qXQ==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xTfqj-005Okn-2r; Wed, 18 Nov 2026 14:41:47 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Alexander Ivanov In-Reply-To: <20261118131032.3372996-1-alexander.ivanov@virtuozzo.com> References: <20261118131032.3372996-1-alexander.ivanov@virtuozzo.com> Date: Wed, 18 Nov 2026 14:41:47 +0100 Message-Id: <179500930710.202939.18409474108045244620.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2331; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=Aj2sX+OxGBGEfEMTDZSCwZNgjsJpKRjpwDP6hps1MbU=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBq/asbDnAy+cw+trn0urJn3481295dKR5qvvGnR zVY5YkW5gqJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCav2rGwAKCRBRlgpH+WFc KuQ7EAC44dLX/dtKDD73+VXOiJE6tL+sZ86Hp4Lr4r1cRv92pNkF5inNOtn5yvM613zs30zjh2h pr/ALtWE4ufqN4cqVXbJmBYjVnK5IjBcwkasz3V10+qLu2Sn6c/epKSTrGRwZxzDpIZ8/WRzpxM X+OsqmVkkP96yzYmX16HRe1/CIwpmMB3Ul1p8J0uFDFY56zXqCEz04YHkAHIuSRYV4tYCbHeFZR tDmw/Waiq3YW8f7SE/Zy5U/BQZ0aVcooqplIF4GYMVoWe5+eBUSoqKqeDlQIF8ZxcVR9HLx2WTP OMqgM62Pm1NA3e50fVyZEqk0yCXiXBaGkvw0SV5NJ7+1Y8sfu19rDzdIy9PMp1cPf2zNnSndrwq Uo9sXjqFyxSDP0OzVIXG45BjxH5Cnb9r2/WIv8TPEIr+o9rus0YBB8KdJsT/m9plu+TNe42Uj+I nn9XlFLDwYIOf2YLYW0cYVnvR6WP9bXdtGcFdH1EHgKxMOO6HEWcCS+79wQd55a5y0f6PWZxETI LZX1rtJKTO1oerk+pLeFyshq8d51H9/Q2fGLQsaV/MeJYf26bUs2WSbrcVzbLZcvzz65tRKB2kB m21F6Gm5kKH2sIJ9LlseqO3n2ArHD297LTcP/nPE9wNlnF9HfVr422DTnWGv2ycy8k46VG/Kpn+ SSazXgLnLWVLATA== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 v8 0/9] dm-ploop: give back unused tail of top delta on suspend 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 I won't apply this version, please send v9 with the changes below. All eight v7 items are done in the code, thanks. What is left: 1. 8/9: prealloc_stopped drops every preallocation request for the whole time the device is suspended, so a "resize" (or a merge) of a suspended device that needs a cluster past top->file_size now fails with -EIO after the "Prealloc failed" retries; before it grew the file. Either fence only when the postsuspend wait was skipped (standby), or refuse resize and merge on a suspended device with -EBUSY, and say which in the message. ploop_flip_upper_deltas() still says "A resize of the suspended device may have restarted the allocator". 2. 8/9: the preresume wait for inflight_md runs before ctl_rwsem, so a resize issued during the resume can leave it at 1 and the reload is skipped with no trace; at least log it. 3. Messages: 6/9 says "calls wake_up()" where the replaced code calls wake_up_interruptible(), and does not say that wake_up_locked() is what wakes the new uninterruptible wait in ploop_destroy(); split the "Request preallocation..." paragraph of 8/9 (eight sentences) and give the two __dm_destroy() sentences of 9/9 their own paragraph; 9/9 logs an expected -EBUSY skip on dirty md as an error. 4. Cover letter: the deploy order against the ploop PR is still missing; 3/9 fixes the is_raw order, not header validation; the wait left as is is in ploop_suspend_submitting_pios(), not in ploop_resize(). On Wed, 18 Nov 2026 14:10:23 +0100, Alexander Ivanov wrote: > - Patch 8 (was 9): > - keep the waits for preallocation and BAT writeback in postsuspend > uninterruptible and skip both in standby; drop > ploop_wait_prealloc(); > - drop pending prealloc requests while suspended (prealloc_stopped), > so after a skipped wait the old allocator doesn't resize the top > delta under a ploop of a reloaded table; 1. Only work that can run after the table swap needs fencing, and the standby case is the only one where the wait is skipped. A message on the old table finishes before the swap (__bind() calls dm_sync_table()), so a resize of the suspended device does not race with the new table. Thanks. -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel