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 1AD3180027 for ; Fri, 20 Nov 2026 17:09:30 +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 6AKH8Cpr010347; Fri, 20 Nov 2026 20:08:12 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AKH8Cpr010347 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="InRgN4gm" Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AKH8AYM010342 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 20 Nov 2026 20:08:10 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AKH8AYM010342 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-6b706aec674so1272735a12.2 for ; Fri, 20 Nov 2026 09:08:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErH10zsU4pji/nBxTG1nkXSYun/+W/S2q8ULa9OpW6Q5q+VRMQmJLw2iPhngKo4xBj29v41DPQ==@openvz.org X-Gm-Message-State: APuU4Z+nSZgxUL1357c27OJw4Z+u0T9CrukXvUC+44PVfGFBT7CQmLsV 7v0bP1P6H01xsPMU8lvUDDayA4cEEuZ66iwEwcGQWW17/GRSqoVLV9HmkupzOtPk6OTOSfa8H35 HhdgR4v5yQM1FgGHRZhEkWQewQ7USqe0Uaet1zSZUzTTtYdVnE6Jstg== X-Gm-Gg: AZFdTZdg0OWO2+DTTFiQ+afOLkxwyt2QN8ZJ7ghOhWs3Vy/JFRdOvAHwZldwxzk3oYh hE9p41j45ogqoq3Lai7939plNBdPNqhxP0WEn5a3+Cg+UO4XaKy4XKJzsScxITew3fN4qsUUO7h HGZ02sBCdK0NOsllMD+A/5W4UMsHIsCubqrUxrAsKn0VuhNlmv5sbRBwJu9EvIijrYJQxPdTJY8 Fbuj/lOnGtAW3UuqCLKllR4o9MfFZXYOyzUBGChSgsIg3Y29ONQUWqGK9w02sqZCo6o/UoIgYii rurPmfOG5UCHAVwzkv3ajcWEYL6nODIW9naZc7quZthA6XJkCIQynxnhCLHgnpZtBtDfdYZGwnF iF0yhX0Oxesh8AkpnXQ== X-Received: by 2002:a05:6402:c709:10b0:6b8:8816:c33e with SMTP id 4fb4d7f45d1cf-6ba37eae1e7mr2079788a12.27.1795194490362; Fri, 20 Nov 2026 09:08:10 -0800 (PST) X-Received: by 2002:a05:6402:c709:10b0:6b8:8816:c33e with SMTP id 4fb4d7f45d1cf-6ba37eae1e7mr2079777a12.27.1795194489873; Fri, 20 Nov 2026 09:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795194489; cv=none; d=google.com; s=arc-20260327; b=IXLIuMTHXAJRhawWVkla5Fc4yryryWnxgPPQqVZuygSb0RbtKEv1vb6sIhoEaPNNqC eUaVPZbY3qMzX2ykEjLKc0LmHfTTM3rn4PF2xk1QdD0sRkorY2ywNsHBoCJm8VuzDPBM nRBKOaT3MSLPwxGkuvG5kxWO6xIkEPtWsx7s86Ns6oZL3Hd28q9FT8hSa3yTrNN5gsw6 ktxm/fdTdms43ZsAwUy8dM3H97UwFMTAdkYfw0wousqhtsdysX4w0J1sbGNuf5woIYz6 xIhEa++oDdC5beQSQ2fgGCiMXznvUWEE+cAtkAWbtLtH8CCMB6eQTyJ0y0f+HWyb4+1R 00Dg== 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=1NwvTrdPDdn+OQruh646d+ugDhQYjzxGggaQWvlXUHI=; fh=YDx/sgeCfUIZ9eyfBjqETg92hV70ladS2omuMPCV2do=; b=U+YYWSm3EpHxfAEn/h7SxTW6+bqSXq/2A9frODhWhLram33DSefzX/Vw5urz0CsQcf uz6nvy4jDjxVHLYq836PRJyn+7ewDL7WMMyer36csVdVlhUtlkBSgHX0P6hh/LlLE/x/ t7IpeS8Rwi1CfFJEUmI1eoN0pDuN3ywFDUI1kfy76ypNFUj4oQCfKifhq6vRaoMTYhP5 thOz8siKsfyBbGdqpHFuG4IRzAUR9nbggGhBlDiK7oYwW9BF5/lDazSABs+y+KQocoD6 6EQYs7R/sU+J7DHo8BJLTeijKcGt+BQxSPnU3IITP7oBoAFj7wj0lXeKSM15lorlSdSv 10bg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=InRgN4gm; 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 4fb4d7f45d1cf-6ba373e2913si2924132a12.239.2026.11.20.09.08.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 09:08:09 -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=InRgN4gm; 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=1NwvTrdPDdn+OQruh646d+ugDhQYjzxGggaQWvlXUHI=; b=InRgN4gmDK2U T/mfDkBSAvIh8J4Qo8rZNnXZEHdAu+I3N/1NkRldv7FlPUQmO30a133Q/x4Cbcla5/xESN3DKTX0l eH7qOsouRgJOy31j3PEo63hzMQuPCNGhcDPUB5GQlwX0i+/CEsYiolLMIu6nMnRrxVqdPECvj9WX0 rgQxTHwt9XZV9HvvN4K+3yYuzhil1M2WunuznSAzIjmRcG6CA6nkbpg15ZMgoEnDTnzj2M0aMgsEa umGXcI6MN9uDVduI/Gpo9vYsacbZVKetzATthWKjYLoXJofF4Np8tiIcYY8q5cH3P/XpJyIMkUPrC GGy9INDmhofe7C1yDZYsww==; 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 1xUS5l-00BBbG-12; Fri, 20 Nov 2026 18:08:05 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Alexander Ivanov In-Reply-To: <20261120164000.3954787-1-alexander.ivanov@virtuozzo.com> References: <20261120164000.3954787-1-alexander.ivanov@virtuozzo.com> Date: Fri, 20 Nov 2026 18:08:08 +0100 Message-Id: <179519448848.346021.10734571079666082132.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1683; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=BCVntVTf38HTFMe8uRbmp68LLQG8AXYOnGDPWOhnAXk=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrAH54PJMpZs2W952KbGUUiFkEvsL7nF/sVThmy NvYrXwiuzWJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCawB+eAAKCRBRlgpH+WFc KvenEACeOQnLUFqaPHJZv6/9ZEy/ATdBThx5+ZypUsn00h6XV0XKBUYOKjO1Df/oZlcqXv8CO6A wf/eYP7gJw8A7RZG1nKV37p3uREPQxVjfjRUp8I0bW2KZ1y0bPnQQFyuWzhQGDB6FN/izse/OEY vxtG1QQnqg8utVq7V6lMgQA9FrYxVrBJiFIbq4N/kAbCyUbvSxtVcToppYMOmLUItFju5hj79KC TTkM5Kt1ivCK80F0Rj5n0lF/PbbLMAVgG1wVcyoSGrSqsqaX6GEqJ6mm4BUBOih+pMj7wiCRk3e EPw2bvp1Mys6IOc+XfkXKHnu8ANHymVtO8GNtucGi1Ipmf2S6WJR3XhFkSY1iGGTwkYspPIxfee OnyuaDbG1ssVakhHrK+kik00hgXa19Xawuv/Aqvs6Ze0avCI8aATweMCbzmrAoSl90IhjPskJvm fCXeSJhvLiMHOVAuchSlJlcE0G4mhX4LvYHhQqwMfniFQmAfEF+Hheta6A5ZQKP/abIh49/id5m Oi8Pv9ddtr+Q/sLy8ncCWuvhVNPBBnwPxfaABUvJnktAZeRU82dNC4iBLuEhf9iGcboc3F0Qy2m BtBjpNcr6JzRDI0hlCGi0u3nVn2dmnd1XP3ynXmI49fiujhVL5N58N8dKLwensQ27J8j+fdTvFA kedtZFjRBilhSbg== 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] drivers/md/dm-qcow2: test the table mode against BLK_OPEN_WRITE, drop unused is_ro 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 v2 with the changes below. - Rebase on hci-8.2: drop the qcow2_truncate_unused_tail() hunk, redo the qcow2_postsuspend() hunk, take that function out of the list in the message. - Drop the ti argument of qcow2_check_convert_hdr(), is_ro was its only user. - Say in the message what the removed comment is. - Use the "dm-qcow2:" prefix, the subject is 82 columns now. The code is fine: every converted test checks the same bits as before. On Fri, 20 Nov 2026 17:40:00 +0100, Alexander Ivanov wrote: > dm_table_get_mode() returns blk_mode_t, but qcow2_check_convert_hdr(), > qcow2_attach_file(), qcow2_truncate_unused_tail(), qcow2_postsuspend() > and qcow2_preresume() still test its result against FMODE_WRITE. fa6cf94f94fa6 ("dm-qcow2: truncate the unused tail of an image after backward merge") is in hci-8.2 now. It took the mode test out of qcow2_truncate_unused_tail() and calls it inside the FMODE_WRITE block of qcow2_postsuspend(), so this patch does not apply there. Four sites are left. > The is_ro variable in qcow2_check_convert_hdr() has only a > commented-out user. Remove it along with the dead code. That is the dirty bit check disabled by 6e1526bb6ed59 ("dm-qcow2: Temporary disable dirty bit check"), and kernel_sets_dirty_bit is still a module parameter. Name the commit and say why the check is not coming back, so nobody goes looking for it. > - bool ext_l2, is_ro; > + bool ext_l2; With is_ro gone, nothing in qcow2_check_convert_hdr() uses ti, and qcow2_parse_header() is its only caller. Drop the argument too. -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel