Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4676003iob; Sun, 8 May 2022 21:35:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWJgCx4AIcl3finU2vZrREJ4BeAQRxTAXaIk8noDP6NT0gTymccrG2/PTdSPdzuXdx6ttC X-Received: by 2002:a17:90a:8592:b0:1dd:bab:d286 with SMTP id m18-20020a17090a859200b001dd0babd286mr6298397pjn.143.1652070918908; Sun, 08 May 2022 21:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652070918; cv=none; d=google.com; s=arc-20160816; b=uQZUW2YrCz3sNTu0+jiGHq8r6eMCsZDu9PYcmVsvb/WKQNWjcN4gYbu9HCYGY6wdHn 3OvNU1vs2M4yvzNckSlDM2E7he8sr/02NmhM5htMqpsje7o9+EK96/5z983BUxZ7SzhV PcGBWWO/Iqxav5HERdvxw2pjwELU3moSVag8IbCc55C4QvZgVhHa0V/SsvJbi9yOY66s oeB5k2gU71NoNZ3fqbgNFp6PdQ2zyP5SksVEhCyJBqVUf3tsrZ/dGMgVnXBnY8E6X1RA LKaFcmy+4B3Ko0pOyw4G5oN7+31eYU3SLOPx99h59iECZiuizRNEW236y8MUbprK7BGJ Uj4g== 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=j19LG41QlgQqZ+lZFqrhtRma1C1jIg9OOFvDpBlTex4=; b=zV3u2pXl+3/hCkfZL1e2+MQ3E/oLvMpjiMra7tg4GhFx5najTSvBhc3lwIU4mKVtDt AqZDTvRrdPdtV3GYi5T9n58khWunwy5NsZ8V+/tNPFWJNAiL9V8iwXqTaddnLaDYWNo3 FYdjIZx/3axcdSKkWr5RfKJkdQ09yXQJcGHozLmz1TkBBrhMtDk8XP76OtBOB9naVPjY UEkKViYmMu5jM6q5wGMh8CsljwFXbvfr0V8RBwAldtbBFnaX4ep5hQ3ZYa0UwjpzhGCF zfqaZbf4FpCqAx10sSC1WbuzF2VwuBlHWZYXneArFF0KwiPYXrWLkaqfBp9cMkOhZdFx seag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qSK450mx; 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 23-20020a631257000000b003c6c6132f5fsi2250955pgs.290.2022.05.08.21.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:35:18 -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=qSK450mx; 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 E826211C081; Sun, 8 May 2022 21:34:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343943AbiEEHcd (ORCPT + 99 others); Thu, 5 May 2022 03:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344233AbiEEHcb (ORCPT ); Thu, 5 May 2022 03:32:31 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D1729801 for ; Thu, 5 May 2022 00:28:51 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220505072849euoutp0253a72b122b7be16f944c9de3d4f50357~sJOTw34ny0111701117euoutp02H for ; Thu, 5 May 2022 07:28:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220505072849euoutp0253a72b122b7be16f944c9de3d4f50357~sJOTw34ny0111701117euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1651735729; bh=j19LG41QlgQqZ+lZFqrhtRma1C1jIg9OOFvDpBlTex4=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=qSK450mxwZZbcleGzZAl+PCJRc4osU6wshdEJje4Fgn9KOe9lVv4T6FR/JKhixwvP qKNh0rcCqoXrfZmcJVv2aZQ+mnheRHSPM/uVx2YzEJ1YQal8PeNEd5Pf01PDAaE7JJ KA9nLDxF4tAnrPXEbFnp5IxetDXPhhCXa7q3Ov+M= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220505072848eucas1p1d66f136b7b1226351171cd4dd1152d26~sJOTKK_DF2541325413eucas1p1z; Thu, 5 May 2022 07:28:48 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B4.15.09887.0BC73726; Thu, 5 May 2022 08:28:48 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220505072847eucas1p27c50364580d96918bc2a59b6877671ba~sJOSvbf6V0726607266eucas1p2b; Thu, 5 May 2022 07:28:47 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220505072847eusmtrp2acdb61270717097424f910760caaa9a7~sJOStu9m32757327573eusmtrp2B; Thu, 5 May 2022 07:28:47 +0000 (GMT) X-AuditID: cbfec7f4-471ff7000000269f-26-62737cb08449 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 73.0D.09404.FAC73726; Thu, 5 May 2022 08:28:47 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220505072847eusmtip133d8624e020309d5e17197a6d3fce6cd~sJOSiJ1WZ1867518675eusmtip1m; Thu, 5 May 2022 07:28:47 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.170) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 5 May 2022 08:28:44 +0100 Message-ID: Date: Thu, 5 May 2022 09:28:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 00/16] support non power of 2 zoned devices Content-Language: en-US To: David Sterba CC: Johannes Thumshirn , "jaegeuk@kernel.org" , "axboe@kernel.dk" , "snitzer@kernel.org" , "hch@lst.de" , "mcgrof@kernel.org" , Naohiro Aota , "sagi@grimberg.me" , "damien.lemoal@opensource.wdc.com" , "dsterba@suse.com" , "linux-kernel@vger.kernel.org" , "linux-btrfs@vger.kernel.org" , "clm@fb.com" , "gost.dev@samsung.com" , "chao@kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , "josef@toxicpanda.com" , "jonathan.derrick@linux.dev" , "agk@redhat.com" , "kbusch@kernel.org" , "kch@nvidia.com" , "linux-nvme@lists.infradead.org" , "dm-devel@redhat.com" , "bvanassche@acm.org" , "jiangbo.365@bytedance.com" , "linux-fsdevel@vger.kernel.org" , =?UTF-8?Q?Matias_Bj=c3=b8rling?= , "linux-block@vger.kernel.org" From: Pankaj Raghav In-Reply-To: <20220504211440.GU18596@suse.cz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.170] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0xTZxjed87pOaedkGOB8K2wbMOxcZk4yJJ9G5sDN+dJRtQfbGMmRiuc AI5yaenmmKZ0KFEY4+IFd0Rg3rCIFoEUqVwEpAgWXYA6JFrmKAkWqd1AkRRxtIct/Hve55L3 fb58NC41kjI6NT2bU6bL04JICWEwzd9aW79Xtevd0iop0vebcHThfjGJjjnncXTz6ACGyoqP U8g1cBtHbY4TIvT7My2GTrvmCKS70IMhm57H0c/XnAR6XmDFkG7/AxwtPIhEZV13AJqw8Bhq Gw1Hg+PnKTR4ahNqbesj0JCxgkRV5yYoVJL/BEcjJRMAlfY2itClqccEujEaEBPIDg1/wS7e qCPZ0jwHxd62XibYoQE121B7iGR/yz2Ks41nNOzV6hmMvXo3l2SL8hwk23JgTMQ+breQrL7J QrDm6usUW9J4WbRVuk3yURKXlvodp1y3fqckZfKci8rsp/YYzA0gFxSRBUBMQ+Y9eG2hYQlL aClzHsCJwfuEMMwCaC3rWR5mAGxfyPs/8nSmiRKEGgCnrAaRW/C4bK0bBcEIoHM435PwYtbD uzWdhBsTzJuwcGx+mV8N+361eXg/JgEe480e3of5BF40zmJujDP+cNRW5cG+TBCsNFkw9wKc cUmgo7VyaTNNk0wY1B6i3B4xsxYeqejHhWwoPNDsogT8GmyersCFBmvg4ZFhTMD74EWT2dMG MpMS+MeJ08umz2DBi/Jlkw+09zZRAg6EL1qqlvkf4cSICxfC+wEsbtGT7oMgEw1/MacJnlj4 Z5FNJNDecGR6tXCPNywzlOMlIJhf8RT8isr8igr8igrVgKgF/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z4Bi4sK REg82H2WFcQWFrCXWLvrCxOIzSwgLnHryXwwW0RASWLesatgtpDATiaJR99iQJYxC/zkkpj5 uRFoMwcHm4CWRGMn2F5OAV2JKXNOMUPM0ZRo3Q5xD7OAvMT2t3OYIT5Qlph84woThF0r8er+ bsYJjKKzkJw3C8kZs5CMmoVk1AJGllWMIqmlxbnpucVGesWJucWleel6yfm5mxiBKW/bsZ9b djCufPVR7xAjEwfjIUYJDmYlEV7npQVJQrwpiZVVqUX58UWlOanFhxhNgWE0kVlKNDkfmHTz SuINzQxMDU3MLA1MLc2MlcR5PQs6EoUE0hNLUrNTUwtSi2D6mDg4pRqYPJye+xrfntSvZ258 sj6QJ9fgXaL0leeRGjbXc2Z27Emf8VX0/e7QfR3TnWf9nXBUmW1d3O05uo/j9ub9Xv+do/+c 6k+Xz5Ncz6auZj7aEKfMKPCOLZH/r4iFUtiBjKMlDRwBTp+tOK/Eq/yU/GDnG3Juaej7f7c9 32dmfnFOOtLQFn3ZwdynzppHc+uk5ZVL7ktFvw/KOpx5UzHl3601M7+fPD7P8ac8e2Kl6nvL qZ5LLqyY9XS+sreS5fy62uavc7R6Y8t6O8xzT3hWGIR517PbPPu33uTrLOvmbsGnEdf39hW2 Hr8b+t6/Yu9yK/NfD2vdi45rWb9xTXYKSbueFt7nJ526oeeI8lJrUSclluKMREMt5qLiRABk 5eXBAgQAAA== X-CMS-MailID: 20220505072847eucas1p27c50364580d96918bc2a59b6877671ba X-Msg-Generator: CA X-RootMTR: 20220427160256eucas1p2db2b58792ffc93026d870c260767da14 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220427160256eucas1p2db2b58792ffc93026d870c260767da14 References: <20220427160255.300418-1-p.raghav@samsung.com> <20220504211440.GU18596@suse.cz> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 2022-05-04 23:14, David Sterba wrote: >> This commit: `btrfs: zoned: relax the alignment constraint for zoned >> devices` makes sure the zone size is BTRFS_STRIPE_LEN aligned (64K). So >> even the npo2 zoned device should be aligned to `fs_info->sectorsize`, >> which is typically 4k. >> >> This was one of the comment that came from David Sterba: >> https://lore.kernel.org/all/20220315142740.GU12643@twin.jikos.cz/ >> where he suggested to have some sane alignment for the zone sizes. > > My idea of 'sane' value would be 1M, that we have 4K for sectors is > because of the 1:1 mapping to pages, but RAM sizes are on a different > scale than storage devices. The 4K is absolute minimum but if the page > size is taken as a basic constraint, ARM has 64K and there are some 256K > arches. That is a good point. I think it is safe to have 1MB as the minimum alignment so that it covers all architecture's page sizes. Thanks. I will queue this up.