Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3265554lfo; Mon, 23 May 2022 00:18:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+9kjdHStst20I6bwgZm8gG6C5Tp7UvfN7oPiK7d3tTvk4A3RghNQfKHFzww9KdFTlcBXZ X-Received: by 2002:a05:6a00:1807:b0:518:422c:b751 with SMTP id y7-20020a056a00180700b00518422cb751mr20137061pfa.81.1653290288028; Mon, 23 May 2022 00:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290288; cv=none; d=google.com; s=arc-20160816; b=HKObGqnJprnlKOZf8z8LqYo3LcUFQg2xdKPyXI24tY9OG0ODf4Y2PlppKS8prWMxjo /tetFbmx0GPFQXkcFFeW16EuMX+krkF4bh3hR+Ch7DG6Rd7VY3+NQ/1xuvObLMMeRiyU YhLPOzAA0yJlIHbuAnzIEhYeMoXOe7pMRyePPxedHPJ3NX81XuYSz1v/VEJp2RuoiEjN b2jzrPx/tydIvQw4jAACVSQADL1kE5SeH5BF23FZy60WoXxbFlTDPwuMwX5baye9nKZn JHv7QwdU5HVtzih2SsJLye6Xaf3w3idlwMBY7cgeuvJY2efaEJJhGg6oPCqAs16MDiW/ hxFQ== 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-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=NWcmjHxVvCkOxG1z+lqRA9bprQ9RJiXcv6vgQCSVJso=; b=h7WzQ/zmSboOcH3M4WdabjNtXiSiO1Ogoq9Zb0ht1iymY++EjueFC2QEnfBXwWOSGD z5d7YgqV4nl1bBWcqQ54U0JVQfLElaMJgbJVlmoYx6Jx4dFHqLoOpEuSVeMvMa3kood6 SsqjAQ/F6iOnCqrKzCQkd+Sq5Z+Cpug3EQrOSp+Au4ZkYnLoDd8B9V5NoMAzxPxoJ7cQ YCOscetaEJwsmo07ICO1HYRmILNW7axLy8Qt0129r7p3vPgBzV1loH5E1vrVw5g/Ze9v UqBC8vNoAwMLK5Lwb5C2+kBeIpck+TKLxmCbPsGimm57beTZGpgdeZ40MCi9C6G3/vDG sITA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="ZFy/4xVl"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id q26-20020a65625a000000b003f64026ba9csi8398308pgv.600.2022.05.23.00.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:18:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="ZFy/4xVl"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 D7E7C93458; Sun, 22 May 2022 23:35:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345829AbiETG1f (ORCPT + 99 others); Fri, 20 May 2022 02:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345819AbiETG1b (ORCPT ); Fri, 20 May 2022 02:27:31 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AFBA14C776 for ; Thu, 19 May 2022 23:27:26 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220520062724euoutp02c01d7a94153ba6da387e0fdfdc929c31~wvD_VAS3c2482524825euoutp02X for ; Fri, 20 May 2022 06:27:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220520062724euoutp02c01d7a94153ba6da387e0fdfdc929c31~wvD_VAS3c2482524825euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653028044; bh=NWcmjHxVvCkOxG1z+lqRA9bprQ9RJiXcv6vgQCSVJso=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=ZFy/4xVl3d3hjX0Z/G9HEvtfxQflLB02JHHJfq4i8Gm4jV6OlFSWAnQXo5zCtiwdP HmAGlJsF/MOxE7W1TQyHEtURCMu28pARFdHKn0tJ9L4VXqh4Ebf878pPcMnV6Zzbfa iXC6KtuFS/Z6MQcBxleS54Rq7SxzOw2f/YXOwqhY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220520062724eucas1p214361a79ca87b367183b71a01e2378ee~wvD_AVEY92215422154eucas1p2P; Fri, 20 May 2022 06:27:24 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 97.F3.10260.CC437826; Fri, 20 May 2022 07:27:24 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220520062723eucas1p240797e3e285a45576201cf785e92a677~wvD9oan6J1329813298eucas1p2g; Fri, 20 May 2022 06:27:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220520062723eusmtrp2fe5220a95ad3bee610b372f5fe699a3b~wvD9njb0S2573125731eusmtrp2f; Fri, 20 May 2022 06:27:23 +0000 (GMT) X-AuditID: cbfec7f5-bddff70000002814-7e-628734cc74ea Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D9.62.09522.BC437826; Fri, 20 May 2022 07:27:23 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220520062723eusmtip1533e0c66af30c7e4b73d513c38052c01~wvD9dFNwx1838918389eusmtip1j; Fri, 20 May 2022 06:27:23 +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:27:21 +0100 Date: Fri, 20 May 2022 08:27:20 +0200 From: Javier =?utf-8?B?R29uesOhbGV6?= To: Hannes Reinecke CC: Damien Le Moal , 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: <20220520062720.wxdcp5lkscesppch@mpHalley-2.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline In-Reply-To: <16f3f9ee-7db7-2173-840c-534f67bcaf04@suse.de> X-Originating-IP: [106.210.248.142] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCKsWRmVeSWpSXmKPExsWy7djPc7pnTNqTDFovs1isvtvPZvH77Hlm i73vZrNaXPjRyGSxZ9EkJouVq48yWTxZP4vZoufABxaLv133mCz23tK2uPR4BbvFnr0nWSwu 75rDZjF/2VN2ixsTnjJarLn5lMWitecnu4Ogx78Ta9g8ds66y+5x+Wypx6ZVnWwem5fUe+y+ 2cDm0XTmKLPHztb7rB7v911l81i/5SqLx+bT1R6fN8l5tB/oZgrgjeKySUnNySxLLdK3S+DK uPf0IXPBO5GK9+27WRoYvwp0MXJySAiYSGx+95cNxBYSWMEocXteXhcjF5D9hVHiwc17zBCJ z4wSh5ZbdTFygDXcvSgCUbOcUeLblV/MEA5QzcH599ggnK2MEldfXwQbyyKgKtGz8gkTiM0m YC9xadktsKkiAkoSH9sPsYM0MAv8YpO43f4ArEFYwF9i4q47YDavgIvEmbVnmSBsQYmTM5+w gNjMAlYSnR+aWEFOYhaQllj+jwMkzClgLdGy6xkLxKXKEsun+0J8WSux9tgZsFUSAs84JTZ1 fWKCSLhI7Pp1iRHCFpZ4dXwLO4QtI/F/53yommyJi2e6mSHsEonF748xQ8y3lug7kwMRdpRo v7WXHSLMJ3HjrSDEkXwSk7ZNh6rmlehoE4KoVpPY0bSVcQKj8iwkb81C8tYshLcWMDKvYhRP LS3OTU8tNs5LLdcrTswtLs1L10vOz93ECEyIp/8d/7qDccWrj3qHGJk4GA8xSnAwK4nwMua2 JAnxpiRWVqUW5ccXleakFh9ilOZgURLnTc7ckCgkkJ5YkpqdmlqQWgSTZeLglGpgWhM0hfv2 /LULZOclTI2XckvavO3etZebVBW2LHC6rK+2fI/17Z7fOhcqwnfbTb1yMa5BQWi9R2z21pNu Z0TNIkNf3VWfG7bX/ZB/g+jHgo2nbtvvEbjSz7uiRczla3+02+ZKtT/1StNXrtkjvWPG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azKzXfOTdPsigvpem9dYSrpdqe1EVffCbWeApb/sm37pa+ 5T8pROjmh/a+6LUiV7+FmnUHbfd9rd69hSWSMX3t9V8T12xNXe7Dvzv/38XnFs3sDxlUUqdl z+zwcntixHDjq8PC+TW2NYEWf1n4beQzwxjsfFP4Q6SS0icwfH0xz5U7X1SosivVsu1xQe7+ Sgf+J5LvV0XYfrQRSvrh93K7gGNW+uPpQf/m3zGoXOTUbHTRJi206tr6kwfffJTxWWgf6CPx SJxjikOv6YQD/8WtXllmC5VyGdZ9V5Y9s09B6uh6ReGsO9nKMSIH57J/si3/uW+3201jH9Y0 hv7iCCWW4oxEQy3mouJEAIId+h+YAwAA X-CMS-MailID: 20220520062723eucas1p240797e3e285a45576201cf785e92a677 X-Msg-Generator: CA X-RootMTR: 20220516165418eucas1p2be592d9cd4b35f6b71d39ccbe87f3fef X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220516165418eucas1p2be592d9cd4b35f6b71d39ccbe87f3fef References: <20220516165416.171196-1-p.raghav@samsung.com> <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> 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 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. 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. Could you point out what the challenges in btrfs are in the current patches, that it makes sense to add an extra dm layer? Note that for F2FS there is no blocker. Jaegeuk picked the initial patches, and he agreed to add native support.