Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5720190rwp; Mon, 17 Jul 2023 08:29:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlEbVaFbqNlBx3HU+RtbSZ98wQavLAAqMZCKsKjf71nAmwbMAjbVokEvV+sNwM3CTIuTCzKm X-Received: by 2002:a17:906:73c4:b0:994:536c:ab45 with SMTP id n4-20020a17090673c400b00994536cab45mr7646150ejl.50.1689607746628; Mon, 17 Jul 2023 08:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689607746; cv=none; d=google.com; s=arc-20160816; b=eu0aQFJKcKKra21iCHwucdecYcog2vWOZipWTXR/RIbb0cWqIhJ13/HwLcvUi+/hAq dWukvmRIJQbjrNQacu87CVe4oK95Bw+18QUO+O7hmo6za1ad6wKDsk30SRdKiIbwsIpt IpjLcd17/9RLWJrJ96A2a/J65L4La9B9Vam9aUNVpUdODODN6Au7PpZu2I6Gh4EEmfVM qY0ldgSaaMC7NZJ5SiXZUy7HdDy7jOo3pV4y9SS7Q+TKT89BvZAOyQeEZVduZG0jYTPA 5JIOvG5BF8GW1EXQxp/Iz+QDlaOMEWhM19SwHIO7bLjsUd6Fb2T86XDZ1WAtmAD1/C6G PB+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Pwh+6BKATXlzMY/0vs5/6BSZ4BXrZSlQNcFaAamt3eU=; fh=Wop/i/wLAV0FNJXQAD2gBcLbhXzdxGFCn6xWob33xCQ=; b=dxG8FucfkTG+7feRuzCB3bswTqy8meyIX2qWgIwHp9b/oRQ+YkoPsvbnHKXhZF8NEp tFOm0CBoibTS0KAruCehM2UbXKhmj1NAETHm9R7jLsKnqBynRyRceSnX6Hy8qzZJJctx eEKj+7ofBW/fstW1+lVjDFvgTeo+m/I/Fvdgd3B0xSWukYiRjNCTVKaIY6ovzzWqXUlO oUQ9Q8FvsN4+IfcniowU+pjHxbTk4lHJFpojZc8+qpCLySfCaADkVz71JvvjV8etLwBa sbPkxH817yoFXtC7t8lacmSxAxfbbtrL6nA59gBXuRBBg7syYiSoO4HkOj47iYFFumrt Db6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@veeam.com header.s=mx1-2022 header.b="Adq03v/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=veeam.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a1709064e1000b00988d4bc0913si14491787eju.478.2023.07.17.08.28.41; Mon, 17 Jul 2023 08:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@veeam.com header.s=mx1-2022 header.b="Adq03v/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=veeam.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbjGQOkS (ORCPT + 99 others); Mon, 17 Jul 2023 10:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjGQOkO (ORCPT ); Mon, 17 Jul 2023 10:40:14 -0400 Received: from mx1.veeam.com (mx1.veeam.com [216.253.77.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ADB210DF; Mon, 17 Jul 2023 07:40:11 -0700 (PDT) Received: from mail.veeam.com (prgmbx01.amust.local [172.24.128.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.veeam.com (Postfix) with ESMTPS id 55C5741D18; Mon, 17 Jul 2023 10:40:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veeam.com; s=mx1-2022; t=1689604808; bh=Pwh+6BKATXlzMY/0vs5/6BSZ4BXrZSlQNcFaAamt3eU=; h=Date:Subject:To:CC:References:From:In-Reply-To:From; b=Adq03v/jALeVIjYIT0f7+HUydl+LQABSjOpd1ZRRqWEflsvaQqDTH3HXaIoeR1wdd 9/BWuq6Q5UJsTXskcJwbtKxqDxgUVxZ73zXINy7uEZg/bH2Erb1PKPgs3sAvIOjgL8 Z8ZzUWeajvsygdgqOSelPoqbyL2NTpWotf0WmkL7lspgFrgSJsRpAUe9pYAf88bNSd ueYVJVkjRGjGB0yL3fhsm8LEIhJZzUYqQOhQc+NMFEj++3YOs0g5hputoTUW4+5W+G m018T4ShEQn44ZF2q8ASes4XifNIkdi1vKtpe1ltZj6VDONFfCM1Cnf5Ltypp87h4p DnZceBUr5c8Bg== Received: from [172.24.10.107] (172.24.10.107) by prgmbx01.amust.local (172.24.128.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.16; Mon, 17 Jul 2023 16:40:01 +0200 Message-ID: <90f79cf3-86a2-02c0-1887-d3490f9848bb@veeam.com> Date: Mon, 17 Jul 2023 16:39:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v5 02/11] block: Block Device Filtering Mechanism Content-Language: en-US To: Yu Kuai , , , , CC: , , , , , , , , , , , , Donald Buczek , "yukuai (C)" References: <20230612135228.10702-1-sergei.shtepa@veeam.com> <20230612135228.10702-3-sergei.shtepa@veeam.com> From: Sergei Shtepa In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.24.10.107] X-ClientProxiedBy: colmbx01.amust.local (172.31.112.31) To prgmbx01.amust.local (172.24.128.102) X-EsetResult: clean, is OK X-EsetId: 37303A292403155B677461 X-Veeam-MMEX: True X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/11/23 04:02, Yu Kuai wrote: > bdev_disk_changed() is not handled, where delete_partition() and > add_partition() will be called, this means blkfilter for partiton will > be removed after partition rescan. Am I missing something? Yes, when the bdev_disk_changed() is called, all disk block devices are deleted and new ones are re-created. Therefore, the information about the attached filters will be lost. This is equivalent to removing the disk and adding it back. For the blksnap module, partition rescan will mean the loss of the change trackers data. If a snapshot was created, then such a partition rescan will cause the snapshot to be corrupted. There was an idea to do filtering at the disk level, but I abandoned it.