Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1674921rwb; Fri, 12 Aug 2022 05:12:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR62PPYdZJxAAACnQyJMzNBiZ0ggL/SMmqEz2AeG27J0WkXNWhgpfw1ugBn1yyCVEPhV+JK+ X-Received: by 2002:a17:90a:c402:b0:1f7:75ce:1206 with SMTP id i2-20020a17090ac40200b001f775ce1206mr3881774pjt.68.1660306351741; Fri, 12 Aug 2022 05:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660306351; cv=none; d=google.com; s=arc-20160816; b=MQhwpbtW6a9Hd1M0IXfeQX8uJtIpPg/NRWSo1dLFTpbtrplTGvQ3vmNPY3dZLwC6m6 9b7SNVKFSV8JPaUU/gaYatUNLahAcZV/etK2SkSezkW0lB7Jqswpbdo0uZqUGO+w3vbH D5fNgb4FZu3rhONCxtSolarDNgYdXKFUFz4GYLAB9mr765R3XnEvinVbARnJGYve69E2 tTwBySO0PV9+zeqqOf46rhMT4esmO3ElMcagvr3eoUqbs47mCgxCOO6kkNA0dIhwXomy QB60WP5E6DNGAHYE/RfEP/STBpHMVPZnfxAqS+6IInpXO9eIprQMK41cdGQA1tbrZxc5 DqLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=hIhIJSCGNBKAFOYSav+Nf3xC/FBXseENeTWE3RoQW3s=; b=eJoFgMf5nPAarwmLLAWefHsLsibsgGrhNq4M3LSRonGuqf2rptjBQ3W9BY8liRzbUU vmZbm7yQcWITogZfhd839oZ6v+MQKjHIPFRYf/h32BVQbvpiW93ESxjFZVa0MweMPBZ+ +ab2XOrMwYKeryn+tgvsU1XdnAOX78MhK0PVqMwtl7gBXHWehX8IP3t7Wr48u7vPRCgM lISNk47NXElo7fhSIghRUwN1wCuVH9MKMFYvIntZcS8XZJyjpGMCfGx5S++lqwzYD1p3 yIrc0GdTsjXUsrSPMY2I5zgdbZ7FgwtdpcsriXqkd0jr8O8oXXpBZF3Vjw3I05YdP7qG c7pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=paRJg2pI; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j76-20020a636e4f000000b0041dc9038d32si2540773pgc.373.2022.08.12.05.12.05; Fri, 12 Aug 2022 05:12:31 -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=@samsung.com header.s=mail20170921 header.b=paRJg2pI; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231250AbiHLMDp (ORCPT + 99 others); Fri, 12 Aug 2022 08:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235144AbiHLMDl (ORCPT ); Fri, 12 Aug 2022 08:03:41 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938A099242; Fri, 12 Aug 2022 05:03:38 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220812120337euoutp02e0d27dcd908d5945a879ec632d9aa33e~Kl1gLu69X2736627366euoutp02V; Fri, 12 Aug 2022 12:03:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220812120337euoutp02e0d27dcd908d5945a879ec632d9aa33e~Kl1gLu69X2736627366euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1660305817; bh=hIhIJSCGNBKAFOYSav+Nf3xC/FBXseENeTWE3RoQW3s=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=paRJg2pIllZkxpTnPrleKwqSZIlJVuM99HyIdVzBzIq6nozsSEFEOZK8p3yKfOatg VB/Ej2tIJ5C65uGZ6jSJIsHzjyS3D6g9pWESS1E38ZQ74XovnEP9xIWIe2T45ngSWN s1t3H+vvYjtjQqiBOrxQZF5HBvyYfy9/CIHrzoFY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220812120336eucas1p1b93a191b4ff1fbccb496f2c4fab11ed2~Kl1f54OrM1245312453eucas1p1N; Fri, 12 Aug 2022 12:03:36 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id FA.7E.10067.89146F26; Fri, 12 Aug 2022 13:03:36 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220812120336eucas1p196380c619caf30310cf027b2bed24048~Kl1fV4Uue1251712517eucas1p1I; Fri, 12 Aug 2022 12:03:36 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220812120336eusmtrp17fec9dc826ada2931062094f49505642~Kl1fUjZL32108221082eusmtrp11; Fri, 12 Aug 2022 12:03:36 +0000 (GMT) X-AuditID: cbfec7f4-dd7ff70000002753-fd-62f64198e252 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 37.69.09038.79146F26; Fri, 12 Aug 2022 13:03:35 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220812120335eusmtip277845581eeba604c2b56277631113cc3~Kl1e4YPVv0836808368eusmtip2F; Fri, 12 Aug 2022 12:03:35 +0000 (GMT) Received: from localhost (106.210.248.55) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Aug 2022 13:03:32 +0100 Date: Fri, 12 Aug 2022 14:03:29 +0200 From: Joel Granados To: Pankaj Raghav CC: , , , , , , , , , , , , , , , , Damien Le Moal Subject: Re: [PATCH v10 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes Message-ID: <20220812120329.zkdgwl5uwrwpp25d@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="nuyvy3t234ebxitc" Content-Disposition: inline In-Reply-To: <20220811143043.126029-14-p.raghav@samsung.com> X-Originating-IP: [106.210.248.55] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplk+LIzCtJLcpLzFFi42LZduznOd0Zjt+SDNY+V7ZYf+oYs8Xqu/1s FtM+/GS2+H32PLNFa/s3Jou972azWuxZNInJYuXqo0wWT9bPYrb423UPKHFL2+LyrjlsFvOX PWW3mND2ldlizc2nLBYnbkk7CHhcvuLtsXPWXXaPy2dLPTat6mTz2Lyk3mP3zQY2j52t91k9 3u+7ChQ6Xe3xeZOcR/uBbqYA7igum5TUnMyy1CJ9uwSujF/9KgUX2xgrjh/4wd7AeDKri5GT Q0LAR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RgxJLcUaioRZzUXEiABFPT77DAwAA X-CMS-MailID: 20220812120336eucas1p196380c619caf30310cf027b2bed24048 X-Msg-Generator: CA X-RootMTR: 20220811143058eucas1p247291685ffff7a75186947fd30b5c13f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220811143058eucas1p247291685ffff7a75186947fd30b5c13f References: <20220811143043.126029-1-p.raghav@samsung.com> <20220811143043.126029-14-p.raghav@samsung.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 --nuyvy3t234ebxitc Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 11, 2022 at 04:30:43PM +0200, Pankaj Raghav wrote: > Only zoned devices with power-of-2(po2) number of sectors per zone(zone > size) were supported in linux but now non power-of-2(npo2) zone sizes > support has been added to the block layer. LGTM. I believe the commit message to be more clear like this. I also looked at the other changes and it seems that they have addressed the previous comments Reviewed-by: Joel Granados >=20 > Filesystems such as F2FS and btrfs have support for zoned devices with > po2 zone size assumption. Before adding native support for npo2 zone > sizes, it was suggested to create a dm target for npo2 zone size device to > appear as a po2 size zoned target so that file systems can initially work > without any explicit changes by using this target. >=20 > The design of this target is very simple: remap the device zone size to > the zone capacity and change the zone size to be the nearest power of 2 > number of sectors. >=20 > For e.g., a device with a zone size/capacity of 3M will have an equivalent > target layout as follows: >=20 > Device layout :- > zone capacity =3D 3M > zone size =3D 3M >=20 > |--------------|-------------| > 0 3M 6M >=20 > Target layout :- > zone capacity=3D3M > zone size =3D 4M >=20 > |--------------|---|--------------|---| > 0 3M 4M 7M 8M >=20 > The area between target's zone capacity and zone size will be emulated > in the target. > The read IOs that fall in the emulated gap area will return 0 filled > bio and all the other IOs in that area will result in an error. > If a read IO span across the emulated area boundary, then the IOs are > split across them. All other IO operations that span across the emulated > area boundary will result in an error. >=20 > The target can be easily created as follows: > dmsetup create