Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1466972rwb; Fri, 12 Aug 2022 01:07:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4AlLYT07+Vfa/4LOjaeHui33H7c2DcGeIsuUcYSTOztzuN5RmR/wie83HSdDPSe2oqAZtF X-Received: by 2002:a17:906:478d:b0:730:a5ed:1bf3 with SMTP id cw13-20020a170906478d00b00730a5ed1bf3mr1856800ejc.255.1660291660753; Fri, 12 Aug 2022 01:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660291660; cv=none; d=google.com; s=arc-20160816; b=agsZKWI9mg5YetFM+DEqE2wOyKhkQcnc2Un83rGRV5S09u9/Uj2koTECxBcfUPs8qo M19tLQZnSYf6FprBS7fi1gjUP03ek7ofIXsnFNBgcTffo1Nf+Md/MJCKj9E3q84Fh1w5 gfWDST6r1Ueh3Fdn8t4DsyevkPwblIO/waNS15PqfIY7Vnndo3IDYmzhq0iFfj+ejpRB 4/ORZgdSYBMNsLnkTzPfcK/wmkW6qJqNFuu7Ox+wFPvuvdX7gGRH5KFgmfg2r38P4eJl 69WPW5HBu9AXgEWLX30wt72afDsN/cbJ7VC5l0lUL4nQEBOwkTzvQmuClnirSjCTNpp5 gcdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=PZsQf3iDA8wIHZWw0fJKxNZcUxFzh+Qp6mRoTJ+47pI=; b=NAaF/RfB+7jhmHeJyCMkTkzRYE0CLeiU/av4uis0w/LWJnfJvImqIXGUcB4YeaaJiU MIPDvebMRj4dblMf5RjM6ln5Gu4JiK3dwNiZcOGfHYmf255XSfOE2Owa+npRvS/ffVWM jK4Bw21ebWLbfNBCmeiBayTLi57fIjVQWm5++8V7sgp8V2ZFrL7Onf4PaMYJ2bGVUTqY KP5+b/sixSkGhyXYZKXXBQqHlaJfmkGniao2eV3MfJTULRRk5t9AyFVp/vms2zUaTCF0 85imO5mGDdQlG6VXXUwxyb3ijo5zSkyuwQQLv+zh//7zn6C4ZVx7qXqkyl2KxcfLPeaa vT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Y/4OGgfG"; 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 gv29-20020a1709072bdd00b007313312730esi1423897ejc.85.2022.08.12.01.06.50; Fri, 12 Aug 2022 01:07:40 -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="Y/4OGgfG"; 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 S237347AbiHLHZ4 (ORCPT + 99 others); Fri, 12 Aug 2022 03:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231822AbiHLHZy (ORCPT ); Fri, 12 Aug 2022 03:25:54 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6072B20BC2 for ; Fri, 12 Aug 2022 00:25:49 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220812072544euoutp02151d69146211b17b1f70bff707f9edd3~KiC4jc1Xe1472314723euoutp02G for ; Fri, 12 Aug 2022 07:25:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220812072544euoutp02151d69146211b17b1f70bff707f9edd3~KiC4jc1Xe1472314723euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1660289144; bh=PZsQf3iDA8wIHZWw0fJKxNZcUxFzh+Qp6mRoTJ+47pI=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=Y/4OGgfG/jqYWaBfYVs5GRFvI+enYczKqWf8HXw0YzFa4OxxjjELbIAfm7vZTs1dw LhMdjiuDvzvTlLvV6n3YYG90xpCqX/zq1whZnnNF8o0Irze+n0mhKH/kjBAWDNTICM OIIUOgONTldx+RHLKpXZpL+C2IoheJbKQtucSpC8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220812072543eucas1p16de268e8d20b6b6596d02826ca4663b2~KiC4K812m0990809908eucas1p1H; Fri, 12 Aug 2022 07:25:43 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BF.F7.09664.77006F26; Fri, 12 Aug 2022 08:25:43 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220812072543eucas1p17481ebc371248a10ba678ac2367bca7a~KiC30R8Ur1207412074eucas1p1H; Fri, 12 Aug 2022 07:25:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220812072543eusmtrp1732435be62682777d2e3252a58702ae4~KiC3zahY00802508025eusmtrp12; Fri, 12 Aug 2022 07:25:43 +0000 (GMT) X-AuditID: cbfec7f2-d81ff700000025c0-6e-62f600779d02 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 3B.80.09095.77006F26; Fri, 12 Aug 2022 08:25:43 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220812072543eusmtip2f234d39b26ca1f6cc254757c34376da3~KiC3nN_KP0089400894eusmtip2p; Fri, 12 Aug 2022 07:25:43 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.18) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Aug 2022 08:25:26 +0100 Message-ID: Date: Fri, 12 Aug 2022 09:25:18 +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 v10 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes Content-Language: en-US To: Damien Le Moal , , , , CC: , , , , , , , , , , , Damien Le Moal , Joel Granados From: Pankaj Raghav In-Reply-To: <9cc04d5e-dfa5-6d48-b9e1-60d319ab2299@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.18] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCKsWRmVeSWpSXmKPExsWy7djP87rlDN+SDLrfmVusP3WM2WL13X42 i2kffjJb/D57ntmitf0bk8Xed7NZLfYsmsRksXL1USaLJ+tnMVv87boHlLilbXF51xw2i/nL nrJbTGj7ymyx5uZTFosTt6QdBDwuX/H22DnrLrvH5bOlHptWdbJ5bF5S77H7ZgObx87W+6we 7/ddBQ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rM4veJo4n7N0c+yPq8ZUfP0lhBi7+dDZOniXY9 LIxSYinOSDTUYi4qTgQARMUMOK4DAAA= X-CMS-MailID: 20220812072543eucas1p17481ebc371248a10ba678ac2367bca7a 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> <9cc04d5e-dfa5-6d48-b9e1-60d319ab2299@opensource.wdc.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,NICE_REPLY_A, 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 Hi Damien, >> |--------------|---|--------------|---| >> 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