Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4021648rwe; Tue, 30 Aug 2022 03:16:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR42J1Kcz51Z4ufVt5n2O9eisQys/Kjd/1w4f6aMDE3R4cONRftJB7iX/GmfaYsd3o7u4CiK X-Received: by 2002:a65:6949:0:b0:41a:69b1:88bf with SMTP id w9-20020a656949000000b0041a69b188bfmr17085301pgq.624.1661854587137; Tue, 30 Aug 2022 03:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661854587; cv=none; d=google.com; s=arc-20160816; b=E0vf1jZhSvIcla4UxPJR1BlSaF8zH4Etds6Dv6jpxmD3mLD77DyNry9PpQ1ZS6PKtC +fJ1YHXQM7xu3Cx02CG5iyQcXTZyaxABMbRuWeSZ6txH7lv0tQQmd4taSwjEiu2ubYZc dT+j14PSR8yip5NWsjPiNNbQFNCxEF6vcOt3ZNG3cgCTPb6aA7j3M+U7+fBsgIN1xjFt ouLBL4alitxcOFnMk7nJ3QRd2bsVaeDiZu52nK49+I1a3Ja9lhk8l7LG7mPKagESTqxC J71a0qOztM3l+5lvuJ/MKn1fn2rMUv7C5NbLyzUjxJSu6pMj9to/HtaRhArUNTv56Umg Sbpw== 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=Xl8ekM/fCifrSNkWoYenlh6/74fFdGGQzaDtP7DiP5M=; b=Lwfo6Oz1wpthHYtEumDHtIeSJgZVXzn2mWnH8BAITQjx5CiUvXwI+roF2arep6zFSQ WhlkvvSmpdTnlx6TMDovDV2uzEUQlNDENsqOp0zxdkv2LZCusLi7CmBESDCabpDvtWg/ kExf8K6hGaeGStQMwlL1GH+PH1YlcO2VaTrs16JV5cs2SMPxXNkDHxlqm+jBKem6YaWp iePEt1FilCXrfXVyjHjWONnAaM6UE7EC/XHHeJR9O9KrymcY4qe3mHeJXBXa+TE63D2M 7+JIOGmeX/4BoHcP7yiQQ+nt/9LH8jcmqFAnCsobI+ZenntqcGM/gDUDIuL2QGrG0Mxi Yf9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Au13TcQx; 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 nv17-20020a17090b1b5100b001fdf662166csi3004480pjb.166.2022.08.30.03.16.16; Tue, 30 Aug 2022 03:16:27 -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=Au13TcQx; 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 S230186AbiH3KHs (ORCPT + 99 others); Tue, 30 Aug 2022 06:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbiH3KHI (ORCPT ); Tue, 30 Aug 2022 06:07:08 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CE32ED037 for ; Tue, 30 Aug 2022 03:04:05 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220830100359euoutp0200aa9454c6f4fa8495b0dd8de0ba0fda~QF0MRHRX42151321513euoutp02U for ; Tue, 30 Aug 2022 10:03:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220830100359euoutp0200aa9454c6f4fa8495b0dd8de0ba0fda~QF0MRHRX42151321513euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1661853839; bh=Xl8ekM/fCifrSNkWoYenlh6/74fFdGGQzaDtP7DiP5M=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=Au13TcQx81hWxTjrLLu/B7nxkHvFmLEKWmZY6TaQMDjpJ4dO9Oc5tjRHErF7yHrmg D4heSoPu2GQNdMCCu2fWLJM+23pnAim4ireIrGytQRFdW6YDBOeLmyB6Q+97G+O5DF kBKH/FtDmAW17Y0MtdIJJGC8HkhFubXE3PH+BpF8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220830100358eucas1p2af1fbb0a82c2821242d06ca0e134bd5a~QF0L4lhMD2247422474eucas1p2x; Tue, 30 Aug 2022 10:03:58 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3E.A0.19378.E80ED036; Tue, 30 Aug 2022 11:03:58 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220830100358eucas1p2f02eaa55af0113c1aee6ea579f549c33~QF0LXQAhH2046320463eucas1p2I; Tue, 30 Aug 2022 10:03:58 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220830100358eusmtrp12349e828db7354d492bbd6755edd86a9~QF0LWbizQ1029210292eusmtrp1X; Tue, 30 Aug 2022 10:03:58 +0000 (GMT) X-AuditID: cbfec7f5-fc0a2a8000014bb2-28-630de08e0b56 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 46.34.07473.E80ED036; Tue, 30 Aug 2022 11:03:58 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220830100358eusmtip1348cb269f1db821d6093c62dedd1c9ac~QF0LLi4Be0117901179eusmtip1C; Tue, 30 Aug 2022 10:03:58 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.27) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Aug 2022 11:03:56 +0100 Message-ID: Date: Tue, 30 Aug 2022 12:03:54 +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 v12 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes Content-Language: en-US To: Shinichiro Kawasaki CC: "agk@redhat.com" , "snitzer@kernel.org" , "axboe@kernel.dk" , "damien.lemoal@opensource.wdc.com" , "hch@lst.de" , "pankydev8@gmail.com" , Johannes Thumshirn , "linux-block@vger.kernel.org" , "dm-devel@redhat.com" , "hare@suse.de" , "jaegeuk@kernel.org" , "linux-kernel@vger.kernel.org" , =?UTF-8?Q?Matias_Bj=c3=b8rling?= , "gost.dev@samsung.com" , "bvanassche@acm.org" , "linux-nvme@lists.infradead.org" , Damien Le Moal From: Pankaj Raghav In-Reply-To: <20220830025235.vesnxh6xw6j2vvsu@shindev> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.27] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01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78s89YVS94hu8FF/7jb/yamt V2akqbyYXSaWzfdBaoeU8/yHhmnvLKatZ7k299zieIvHinv5e7ewLFTd4h7H29qWUbBHeSrL 4V91j7J9j9b/DjrgNc25fseefyJa6QvitJQ4t+ad89pXeehsKUegiEvz1avlDledfp2VuvB7 2dKiPan/lN77W+7QrmyeszE8KY0x4venFpvIiww2Dtnmk6y/qU53npGlce50xr6iWdtb783X CVBiKc5INNRiLipOBAA2RNjKsQMAAA== X-CMS-MailID: 20220830100358eucas1p2f02eaa55af0113c1aee6ea579f549c33 X-Msg-Generator: CA X-RootMTR: 20220823121915eucas1p10296d6a2ab00de5e73791a7d6b8e39de X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220823121915eucas1p10296d6a2ab00de5e73791a7d6b8e39de References: <20220823121859.163903-1-p.raghav@samsung.com> <20220823121859.163903-14-p.raghav@samsung.com> <20220830025235.vesnxh6xw6j2vvsu@shindev> X-Spam-Status: No, score=-7.1 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 On 2022-08-30 04:52, Shinichiro Kawasaki wrote: > On Aug 23, 2022 / 14:18, 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 by using this target. > > FYI, with this patch series, I created the new dm target and ran blktests zbd > group for it. And I observed zbd/007 test case failure (other test cases > passed). The test checks sector mapping of zoned dm-linear, dm-flakey and dm- > crypt. Some changes in the test case look required to handle the new target. > Thanks for testing it. I am aware of this test case, and I skipped it while I was testing my target. The test needs to be adapted as the container's start, and the logical device's start will be different for this target. I initially thought this test case might not apply to the dm-po2zone target, but at a closer look, it is helpful once the zone offset is adapted while doing a reset and writing data as the test only verifies the relative WP position. I also noticed that this test relies on getting the underlying device id using `dmsetup table` command. The target currently lacks the `.status` callback which appends the device id details. I will add them as a part of the next revision for this target. Thanks.