From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26426C07E9D for ; Tue, 27 Sep 2022 16:09:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233082AbiI0QJq (ORCPT ); Tue, 27 Sep 2022 12:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233313AbiI0QJB (ORCPT ); Tue, 27 Sep 2022 12:09:01 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97B781C4807 for ; Tue, 27 Sep 2022 09:08:02 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220927160800euoutp023bcf2807f10d4467c13681a702d5fa20~Yw2As0ma20994209942euoutp027 for ; Tue, 27 Sep 2022 16:08:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220927160800euoutp023bcf2807f10d4467c13681a702d5fa20~Yw2As0ma20994209942euoutp027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1664294880; bh=RwIdzIgtbKs9QHoJ4DED58C4ROZCD6b0tKliDtaQBSI=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=tmjyDAfqPeEwrnrFuzudXZ1jpY7Ub7tCH89rYiD+WRW5GRgXrS1pR37o747JZ3o26 VqzuP29uPqKlMFyHgsymYBYP4IxEn4QwolpHBQTlMKERj2Gkt7uPzohqxwlTy3x3dF HZVlMIYQdlEZ7bEquSej2AMfvCH2Y/Xx3Drk5uXw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220927160759eucas1p14443c35879a5fbb90f054c6d2c5dbfce~Yw2AZ0sJh0322103221eucas1p1R; Tue, 27 Sep 2022 16:07:59 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 46.57.29727.FDF13336; Tue, 27 Sep 2022 17:07:59 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220927160759eucas1p204cb172126c7699fe9bbe8c95a47302a~Yw2ACl18T1808818088eucas1p2J; Tue, 27 Sep 2022 16:07:59 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220927160759eusmtrp266599ec57c25b374a7c8549390452253~Yw2ABfgcB0137501375eusmtrp2y; Tue, 27 Sep 2022 16:07:59 +0000 (GMT) X-AuditID: cbfec7f2-21dff7000001741f-fb-63331fdf7815 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 80.6A.07473.FDF13336; Tue, 27 Sep 2022 17:07:59 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220927160759eusmtip1ef6030bd3379573aedc95fefa34af5d2~Yw1-yhWyg0300703007eusmtip1V; Tue, 27 Sep 2022 16:07:59 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.168) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Sep 2022 17:07:56 +0100 Message-ID: Date: Tue, 27 Sep 2022 18:07:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v15 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes Content-Language: en-US To: CC: , , , , , , , , , , , , , , , Damien Le Moal From: Pankaj Raghav In-Reply-To: <20220923173618.6899-14-p.raghav@samsung.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.168] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKKsWRmVeSWpSXmKPExsWy7djPc7r35Y2TDf726lqsP3WM2WL13X42 i2kffjJb/D57ntmitf0bk8Xed7NZLfYsmsRksXL1USaLJ+tnMVv87boHlLilbXF51xw2i/nL nrJbTGj7ymyx5uZTFosTt6QdBDwuX/H22DnrLrvH5bOlHptWdbJ5bF5S77H7ZgObx87W+6we 7/ddBQqdrvb4vEnOo/1AN1MAdxSXTUpqTmZZapG+XQJXxv6JS9gKHrQzVvzfNIe1gXF/Zhcj J4eEgInEocmH2LoYuTiEBFYwSjx8/ocFJCEk8IVR4sJFTYjEZ0aJ9t/fmGA6/m0DsUESyxkl bi28wAZXNX3BdajMbkaJGTd7wWbxCthJtC4+C9bOIqAqsfvvQSaIuKDEyZlPwGpEBSIl1uw+ yw5iCwtkS/zouAMWZxYQl7j1ZD5YvYiAhERr9y4miPhKZon2O4ldjBwcbAJaEo2dYK2cAlYS y+5tYIUo0ZRo3f6bHcKWl9j+dg4zxAfKEstPz4SyayXWHjvDDnKzhMA9Tom/+/qh3nSR6Lzc ww5hC0u8Or4FypaR+L9zPlRNtcTTG7+ZIZpbGCX6d65nAzlIQsBaou9MDkSNo0TfpVWsEGE+ iRtvBSHu4ZOYtG068wRG1VlIITELycezkLwwC8kLCxhZVjGKp5YW56anFhvmpZbrFSfmFpfm pesl5+duYgSmxNP/jn/awTj31Ue9Q4xMHIyHGCU4mJV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jJqASPLKkaR1NLi3PTcYkO94sTc4tK8dL3k /NxNjMBUsu3Yz807GOe9+qh3iJGJg/EQowQHs5II7++jhslCvCmJlVWpRfnxRaU5qcWHGE2B YTSRWUo0OR+YzPJK4g3NDEwNTcwsDUwtzYyVxHk9CzoShQTSE0tSs1NTC1KLYPqYODilGpjW HbSa1/6N4ej9txZq9Y716WUfs93V7s5YekXT++lHe08v84U3zu3w2rvqRc7ie+byGQENyTFJ LfkcWSX7FD+XLjbZahZyba+jkEq2sNjTAte+havYZ82c+902vSmo4KDhS1MnJVZG/xyNJTxd 2ZK8n6LyNANKrly1FXzVU6/9VWDO1s9xv4OXuxpKLnr4SOGn/Vnx3FzFgkmh8Tnyhkf+OKs0 ei1y3sn5UOdX3Jq/LjG3WW1a882m7+07aPS0hlnQeZ+XOO8hV32TvRZXZB7u7bf+Fu1gvUfY ZiJH159JR1g9+kK+LdvmsPF4a5FLWtndc2buZ8SsHE7t1v3JYXFh4pfdk6acZN96fCtvoBJL cUaioRZzUXEiACyJgmiuAwAA X-CMS-MailID: 20220927160759eucas1p204cb172126c7699fe9bbe8c95a47302a X-Msg-Generator: CA X-RootMTR: 20220923173634eucas1p18fccee11155c670354da389b4d2f4c60 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220923173634eucas1p18fccee11155c670354da389b4d2f4c60 References: <20220923173618.6899-1-p.raghav@samsung.com> <20220923173618.6899-14-p.raghav@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Gentle ping Mike. On 2022-09-23 19:36, 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. > > 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 zone size target so that file systems can initially > work without any explicit changes. > > 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 > value. > > For e.g., a device with a zone size/capacity of 3M will have an equivalent > target layout as follows: > > Device layout :- > zone capacity = 3M > zone size = 3M > > |--------------|-------------| > 0 3M 6M > > Target layout :- > zone capacity=3M > zone size = 4M > > |--------------|---|--------------|---| > 0 3M 4M 7M 8M > > 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. > > The target can be easily created as follows: > dmsetup create