Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3279058lfo; Mon, 23 May 2022 00:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/QzcGhMzM2JQop3iIa5I0mMIppdaUDqZ8WR5KxD3/yeqd99E2D1dN2ltu36g48gLT1LlN X-Received: by 2002:a63:8ac1:0:b0:3f6:6d04:6117 with SMTP id y184-20020a638ac1000000b003f66d046117mr14506406pgd.29.1653291196779; Mon, 23 May 2022 00:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291196; cv=none; d=google.com; s=arc-20160816; b=tR0JDsPQNKys2k6Jevir/6SbTkZjEtjrvV8De5SHFQrRmaF/DHlf69lq+hbqYcU/+S pQ0kap8nANXBh55kBkIXlU5mVgPjOPEDYjYeC3PnlQJHKA9fdUIfy20ctUZkee2eZjma 6fTFOBgwMOimXBJXocheUvhoDV/zl50lZpUFsSTjdHWhWJyn7TOOhXSXIMw5abERQXTw JUYtbxAlghdu4xXOIDM7kB8zriCNh3d07fusd4en27pWh8WOAOQN6dSDxefbN2CJlPAa /BZ/Qrf8XJuZDKO787Aeb+Kx2UQbMUI9Ap5gmNyj0YH5PD3NqdlHqt96yzp3Y9xCtW2u hMQA== 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-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=mJkxTYPikvkdqTMnJ+Lh+vfvviEKxyPCWIK29LAgqws=; b=Z5F0znDWQkDkpKZufRy3YvPVxyy3TH6qDPQI9DeOQFefDf+gQL+vaD4SdUx+dTCFid 3vJQ4o+QIugSkZI+yvZLCysUxJ1JD/I01xIxhB3J+U+fDW4j8JjJI7futFv03jvHrpH8 irit0rKyGmLfFJ/kls3OXlcwQSYjPcvE4t0y4AGF6v4pMBcH+WBHp5EzQjsf288Gudty pVub671Slx7b9S2+81uWMIN0mHDo4uq+9P5slMarAtle0yrmxMOOQbTwgGv2MUNRuYFr YCcqDdaZVz9ZA4SMSbjW+tHlW16tkTZwUO2co+FGUClYpI/YVnuedwGmtPpSwi0f+PCC 0ZfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fwZzgxhR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ei23-20020a17090ae55700b001deb8c89766si12342750pjb.30.2022.05.23.00.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fwZzgxhR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6FB712C; Sun, 22 May 2022 23:44:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346132AbiETG7v (ORCPT + 99 others); Fri, 20 May 2022 02:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346122AbiETG7r (ORCPT ); Fri, 20 May 2022 02:59:47 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FCF14FCA7 for ; Thu, 19 May 2022 23:59:44 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220520065942euoutp015c1b8ad709ff42848ed9786ceecb48da~wvgLp1tkr0278402784euoutp01W for ; Fri, 20 May 2022 06:59:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220520065942euoutp015c1b8ad709ff42848ed9786ceecb48da~wvgLp1tkr0278402784euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653029983; bh=mJkxTYPikvkdqTMnJ+Lh+vfvviEKxyPCWIK29LAgqws=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=fwZzgxhR8r0aDLdv917/Pc2QFVtY1YINgZWiGwTQOzlISvRHGfrFqFdQBJ+AhRx8x yao5q7WVWBFdm0noVfvJFkQ46ta/DM69753qC+shGo9aJ/Iwsy4JdIZepUH3ZiUF4O HsjWXQRZnYlVb0Gsf5+wr1IBVe/J59F8oAqQNay0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220520065942eucas1p2c8721732b62af59ccfc2110b4655da17~wvgLVSAmh0722907229eucas1p2_; Fri, 20 May 2022 06:59:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 9C.29.10260.E5C37826; Fri, 20 May 2022 07:59:42 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220520065941eucas1p105cf273ede995dc4bf92f3245fad09b1~wvgKPDE413192831928eucas1p1m; Fri, 20 May 2022 06:59:41 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220520065941eusmtrp119cec5b2f3eb4133ff4c909e1066456d~wvgKM9niN0344103441eusmtrp19; Fri, 20 May 2022 06:59:41 +0000 (GMT) X-AuditID: cbfec7f5-bddff70000002814-c5-62873c5e7aec Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F4.76.09522.D5C37826; Fri, 20 May 2022 07:59:41 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220520065941eusmtip2778dbf13ef9c02edb6e5f1e63237ea6b~wvgKAjsFg2107821078eusmtip2U; Fri, 20 May 2022 06:59:41 +0000 (GMT) Received: from localhost (106.210.248.142) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 20 May 2022 07:59:40 +0100 Date: Fri, 20 May 2022 08:59:39 +0200 From: Javier =?utf-8?B?R29uesOhbGV6?= To: Damien Le Moal CC: Hannes Reinecke , Johannes Thumshirn , Luis Chamberlain , "Theodore Ts'o" , Christoph Hellwig , Pankaj Raghav , "axboe@kernel.dk" , "pankydev8@gmail.com" , "gost.dev@samsung.com" , "jiangbo.365@bytedance.com" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "dm-devel@redhat.com" , "dsterba@suse.com" , "linux-btrfs@vger.kernel.org" , Jaegeuk Kim Subject: Re: [dm-devel] [PATCH v4 00/13] support non power of 2 zoned devices Message-ID: <20220520065939.yjqlgsxs3qchpgzo@mpHalley-2.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Originating-IP: [106.210.248.142] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e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K3CRjn5c/2c+x4Ycs385PYpcz7fcdW Fttc2X3ZJEIz0rlr9ivNI4a9ug217xYvX25flT7RM0//m3tC56tJbVoGR7y3Pn7w5GzL1ca2 /LgjzaHO99gbPPaHR+Ts5mxbZ6LBfkrCafY84Y9HZ00ROcL26VWOScYXph3nY3d7L79bePum Pmv7niiejxPbH6npPtF5Om36va74CRlJJ/Vlgn3aXa0S/sy9WHc10ftm45HNSTYP2mV/VHod Y7RJXG7avZjhyrZrJyItE6TObnPxyPwh2v5+gdB1uwnZ6xteGielz3NkmWaYsGbVy7L8qt6e lgf3z6za/ZvrwqnsA+LdzNJKLMUZiYZazEXFiQDpv0hasAMAAA== X-CMS-MailID: 20220520065941eucas1p105cf273ede995dc4bf92f3245fad09b1 X-Msg-Generator: CA X-RootMTR: 20220520065941eucas1p105cf273ede995dc4bf92f3245fad09b1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220520065941eucas1p105cf273ede995dc4bf92f3245fad09b1 References: <20220517081048.GA13947@lst.de> <7f9cb19b-621b-75ea-7273-2d2769237851@opensource.wdc.com> <20220519031237.sw45lvzrydrm7fpb@garbanzo> <69f06f90-d31b-620b-9009-188d1d641562@opensource.wdc.com> <4a8f0e1b-0acb-1ed4-8d7a-c9ba93fcfd02@opensource.wdc.com> <16f3f9ee-7db7-2173-840c-534f67bcaf04@suse.de> <20220520062720.wxdcp5lkscesppch@mpHalley-2.localdomain> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 20.05.2022 15:41, Damien Le Moal wrote: >On 5/20/22 15:27, Javier González wrote: >> On 20.05.2022 08:07, Hannes Reinecke wrote: >>> On 5/19/22 20:47, Damien Le Moal wrote: >>>> On 5/19/22 16:34, Johannes Thumshirn wrote: >>>>> On 19/05/2022 05:19, Damien Le Moal wrote: >>>>>> On 5/19/22 12:12, Luis Chamberlain wrote: >>>>>>> On Thu, May 19, 2022 at 12:08:26PM +0900, Damien Le Moal wrote: >>>>>>>> On 5/18/22 00:34, Theodore Ts'o wrote: >>>>>>>>> On Tue, May 17, 2022 at 10:10:48AM +0200, Christoph Hellwig wrote: >>>>>>>>>> I'm a little surprised about all this activity. >>>>>>>>>> >>>>>>>>>> I though the conclusion at LSF/MM was that for Linux itself there >>>>>>>>>> is very little benefit in supporting this scheme. It will massively >>>>>>>>>> fragment the supported based of devices and applications, while only >>>>>>>>>> having the benefit of supporting some Samsung legacy devices. >>>>>>>>> >>>>>>>>> FWIW, >>>>>>>>> >>>>>>>>> That wasn't my impression from that LSF/MM session, but once the >>>>>>>>> videos become available, folks can decide for themselves. >>>>>>>> >>>>>>>> There was no real discussion about zone size constraint on the zone >>>>>>>> storage BoF. Many discussions happened in the hallway track though. >>>>>>> >>>>>>> Right so no direct clear blockers mentioned at all during the BoF. >>>>>> >>>>>> Nor any clear OK. >>>>> >>>>> So what about creating a device-mapper target, that's taking npo2 drives and >>>>> makes them po2 drives for the FS layers? It will be very similar code to >>>>> dm-linear. >>>> >>>> +1 >>>> >>>> This will simplify the support for FSes, at least for the initial drop (if >>>> accepted). >>>> >>>> And more importantly, this will also allow addressing any potential >>>> problem with user space breaking because of the non power of 2 zone size. >>>> >>> Seconded (or maybe thirded). >>> >>> The changes to support npo2 in the block layer are pretty simple, and >>> really I don't have an issue with those. >>> Then adding a device-mapper target transforming npo2 drives in po2 >>> block devices should be pretty trivial. >>> >>> And once that is in you can start arguing with the the FS folks on >>> whether to implement it natively. >>> >> >> So you are suggesting adding support for !PO2 in the block layer and >> then a dm to present the device as a PO2 to the FS? This at least >> addresses the hole issue for raw zoned block devices, so it can be a >> first step. > >Yes, and it also allows supporting these new !po2 devices without >regressions (read lack of) in the support at FS level. > >> >> This said, it seems to me that the changes to the FS are not being a >> real issue. In fact, we are exposing some bugs while we generalize the >> zone size support. > >Not arguing with that. But since we are still stabilizing btrfs ZNS >support, adding more code right now is a little painful. > >> >> Could you point out what the challenges in btrfs are in the current >> patches, that it makes sense to add an extra dm layer? > >See above. No real challenge, just needs to be done if a clear agreement >can be reached on zone size alignment constraints. As mentioned above, the >btrfs changes timing is not ideal right now though. > >Also please do not forget applications that may expect a power of 2 zone >size. A dm-zsp2 would be a nice solution for these. So regardless of the >FS work, that new DM target will be *very* nice to have. > >> >> Note that for F2FS there is no blocker. Jaegeuk picked the initial >> patches, and he agreed to add native support. > >And until that is done, f2fs will not work with these new !po2 devices... >Having the new dm will avoid that support fragmentation which I personally >really dislike. With the new dm, we can keep support for *all* zoned block >devices, albeit needing a different setup depending on the device. That is >not nice at all but at least there is a way to make things work continuously. All the above sounds very reasonable. Thanks Damien. If we all can agree, we can address this in the next version and come maintain the native FS support off-tree until you see that general btrfs support for zoned devicse is stable. We will be happy to help with this too.