Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1838396imn; Mon, 1 Aug 2022 01:53:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trYejdrC+I5it4tFBWmmldAvj2eayab8p91YegdpukITuc0o8DRTymsUONhd6cdXmdC798 X-Received: by 2002:a17:907:6e89:b0:72b:68d6:c9d6 with SMTP id sh9-20020a1709076e8900b0072b68d6c9d6mr11617393ejc.711.1659343997383; Mon, 01 Aug 2022 01:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659343997; cv=none; d=google.com; s=arc-20160816; b=ZPRpRAxA0QMy/RZ9xaUyPHHvIdffXeZbVch2VH6wukiLSlN8vMYVSOPsx6mE4BcOOT 7A3xzVc0EXuFmmOh3tQHpvvpQFUNLS2FzsKmGgQw6kx6uw/E5k+NR70ZnYCnTBZXzsAB cFqT9RCKgnyzWhnqpp9AUymgeF7vFNw29YL8ArvIhD10gGS3BzW7PaYDuznMm+zcaYIu VtoJzQQPOtCXoxQM+BOjYRXQlb4pXwskOaqrmV2jffBtW7yeXIaf5z1UnV4p20RbHr4G pXov01Y8kIQ3Tutz2iChTJNnTRf6s+VQNbJUPkg57Ld0lp78wHQujbDABslCk0tIhsli SiZA== 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=HP8eD/aMT3AKaAJ2WAD6d8FpKTpf52a++/hiDHxi5m0=; b=Whx+9XMNDjlXtpCsMSC/KWaQ/UeUUoAyNLCsWdlY4NB9AVVkbPT4lJhV3pXZBGXM/r ZqR0PhUJpE2mm8rkeRrrkoneof7xHL47Ypyx3mHrrySxgg8mWZwLYiQVAuzCmKqA15Ld SVANLggXF3mVEzQ9UZOj88LyGe3pu4AcosecfiLdwUWlw4AhP1eqms+ev9ta3vog/4IG S+vrjJvVQHhNIhAt3qr7J2RTl06Lh/bQtnr37FdJmAR+MhsRdL8APNkpuCKCWp/hAX6d af1kGSgwZ9CjMPrcGJ4RN/M02FytK6LIr536Nld3J89np8UJWuElcSsPk4NvwDeIjqBq 88Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=V9IjGG2V; 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 vl10-20020a170907b60a00b0072b3b1c0a90si8782743ejc.339.2022.08.01.01.52.52; Mon, 01 Aug 2022 01:53:17 -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=V9IjGG2V; 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 S230208AbiHAIfl (ORCPT + 99 others); Mon, 1 Aug 2022 04:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbiHAIfj (ORCPT ); Mon, 1 Aug 2022 04:35:39 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 093A52BB02 for ; Mon, 1 Aug 2022 01:35:36 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220801083533euoutp018fa77cacdc803111b4055e2b57c2b6ef~HK5tbhLaA2822728227euoutp01g for ; Mon, 1 Aug 2022 08:35:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220801083533euoutp018fa77cacdc803111b4055e2b57c2b6ef~HK5tbhLaA2822728227euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1659342934; bh=HP8eD/aMT3AKaAJ2WAD6d8FpKTpf52a++/hiDHxi5m0=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=V9IjGG2VIY5pbJ2/pzLFuszcamUnloxHJCETXPT0hbw2xpJw8FQkCLUD2nrMdodUZ 9muzwh77JS0ZXsEv8HSb0SeL4eoH7GlHwO1Dbg4e6ZSQ3ul0lMtKZQ1uHglpXLFiPj qCqJzzXouF+n/KqUNXCYtbX7lU5EJo+bazBNVmbs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220801083533eucas1p20ad0406141285ffc91e66b3e5cf3afe6~HK5s0RomX3271232712eucas1p2c; Mon, 1 Aug 2022 08:35:33 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 7B.74.10067.55097E26; Mon, 1 Aug 2022 09:35:33 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220801083532eucas1p2a193e31e0acae5e6f5b1507fe38a8e6d~HK5sTWaOn3271232712eucas1p2b; Mon, 1 Aug 2022 08:35:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220801083532eusmtrp2af5e516ad8286a967fedc71d5436a4d5~HK5sSYfp_0819408194eusmtrp2S; Mon, 1 Aug 2022 08:35:32 +0000 (GMT) X-AuditID: cbfec7f4-dd7ff70000002753-c3-62e790550efe Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 64.2D.09038.45097E26; Mon, 1 Aug 2022 09:35:32 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220801083532eusmtip17bc75bc5a969fc37f3bc9b5c20a11d18~HK5sFE1On0213002130eusmtip1F; Mon, 1 Aug 2022 08:35:32 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.8) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 1 Aug 2022 09:35:30 +0100 Message-ID: <24f29103-e7d5-abee-cc2a-30d4f8930dba@samsung.com> Date: Mon, 1 Aug 2022 10:35:29 +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 v8 11/11] dm: add power-of-2 zoned target for non-power-of-2 zoned devices Content-Language: en-US To: Damien Le Moal , , , , CC: , , , , , , , , , , Damien Le Moal From: Pankaj Raghav In-Reply-To: <8fc11ae3-ddc4-4509-5374-04722a740bde@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.8] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAKsWRmVeSWpSXmKPExsWy7djPc7qhE54nGUzfwGex+m4/m8W0Dz+Z LX6fPc9s0dr+jcli77vZrBZ7Fk1isli5+iiTxZP1s5gt/nbdA0rc0ra4vGsOm8X8ZU/ZLSa0 fWW2WHPzKYvFiVvSDvwel694e+ycdZfd4/LZU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nmzMwm7Y7SB4vdHkY8vnVaNduiWdJXw2+GEktxRqKh FnNRcSIA5lMpIakDAAA= X-CMS-MailID: 20220801083532eucas1p2a193e31e0acae5e6f5b1507fe38a8e6d X-Msg-Generator: CA X-RootMTR: 20220727162257eucas1p2848a75c4aa7e559abb5d9ae0fbd374c1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220727162257eucas1p2848a75c4aa7e559abb5d9ae0fbd374c1 References: <20220727162245.209794-1-p.raghav@samsung.com> <20220727162245.209794-12-p.raghav@samsung.com> <8fc11ae3-ddc4-4509-5374-04722a740bde@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 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 2022-07-28 06:33, Damien Le Moal wrote: >> >> 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