Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1056728iob; Thu, 28 Apr 2022 17:57:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXmfdzeY0Pa0glZWmHi+6eQ2T6cxky+eHwFkcJdcQt8qLIMl/6P20GhV7v6/QSchw42tM9 X-Received: by 2002:a63:d44c:0:b0:380:8c48:e040 with SMTP id i12-20020a63d44c000000b003808c48e040mr31072705pgj.14.1651193837797; Thu, 28 Apr 2022 17:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651193837; cv=none; d=google.com; s=arc-20160816; b=vzv8uRcU1aaKbWFsaIjCkzLcoy6mPBCiMvYWyf8BE3KS+SU9WBwBkU2fJrsWFQAC3X F8s7hGAU6oAKBMRDiL9P+/h8dz3c74BtBDG6i384DdOVmVosVtBEAIFG3e/SWZ2t6Sm9 nA0sjMbrH4miBFrAwkuAZOmgpc6PKL8Xjrn2L3Cztj4BpAs3d8UmpRD1W+cl81WNtkcf 8mCUQA2VH+SMEHsCOWg0JcV6d7wMRZz/kGDdvsg4Wbf9Iser6yis+j+Y7V9UHcay4Lag KQbFyugi6WzecIZLIFhRnsHIIMwFH7wu5pfPs1fqoQPdLOdNXmqMVWB0Rw4b/jyvIleP +Axg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M77UyFZc/CQOenG5boLjqoc0qTJMwAANdJbVnxb68KE=; b=tRcblR5mTr98CnIwKwUlSxfffOkzM2FK9hrI9iBU0sq51uEn7BNMGFHqUhYyrGOJAa NLDfAeGSFq+rYKnLVeEGyCCR45QY7QcfwHmJRPL732v23Z783rIkgfYYNuJ3Pa9o8GWj b1fsG0l/NtlbY3OZBQ2YqGqLR11T+GOhLHLjbosUxmqurkt8VB1gFD4WLZqVRhjmaInq dXuNeN+rp4NZW0ubiPjVpY3rZCW6HojAHL7sZWgHyu1avw1YVtPygdrPgOPk6AaDCmg5 XnxIkdSulD88vlZe+ILEc97axoPRgCtTBgvKar/8ArOPXCL3CJ6jxx5s+FpNgwmzCZk4 gfsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JWA7yBd2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a635f08000000b00398ebebcaa8si5624966pgb.261.2022.04.28.17.57.00; Thu, 28 Apr 2022 17:57: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=@infradead.org header.s=bombadil.20210309 header.b=JWA7yBd2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350540AbiD1Rc7 (ORCPT + 99 others); Thu, 28 Apr 2022 13:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348393AbiD1Rc6 (ORCPT ); Thu, 28 Apr 2022 13:32:58 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D3149F14; Thu, 28 Apr 2022 10:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=M77UyFZc/CQOenG5boLjqoc0qTJMwAANdJbVnxb68KE=; b=JWA7yBd2WgLv8JgmAvqWwyoH7N CbCI23q7BAOQJ0ekZUG/FMPi05rdlj74q9wztR9r4BIk+quAD2WWbX+5hu0/Tn9NNZBjpH7On+mMo VC6igZust8a3wLGSg61u8qnlyDLLzOqnSRuUT272lK0I/PfG3acjO4xrDkVkSKqZP881da1wHQb0o YPusvURC9voi3RnaJh4nT8b+IVwjMG6wfxev2aPSyh9jfbfzwITiAEf0dPZe2VsVzZunc5WtOly+c R1yUG4N0F25z4sNcXZVg07M81adkeM3AyCXsGszurdLc5pViE/I3gVGt7mNG8XZe7KQhBn80LujAv 8QWTtyqQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk7xL-0082dM-NY; Thu, 28 Apr 2022 17:29:31 +0000 Date: Thu, 28 Apr 2022 10:29:31 -0700 From: Luis Chamberlain To: Damien Le Moal Cc: Pankaj Raghav , jaegeuk@kernel.org, axboe@kernel.dk, snitzer@kernel.org, hch@lst.de, naohiro.aota@wdc.com, sagi@grimberg.me, dsterba@suse.com, johannes.thumshirn@wdc.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, matias.bjorling@wdc.com, linux-block@vger.kernel.org Subject: Re: [PATCH 04/16] block: allow blk-zoned devices to have non-power-of-2 zone size Message-ID: References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-5-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Thu, Apr 28, 2022 at 08:37:27AM +0900, Damien Le Moal wrote: > Also, the entire premise of this patch series is that it is hard for > people to support the unusable sectors between zone capacity and zone end > for drives with a zone capacity smaller than the zone size. > > Yet, here you do not check that zone capacity == zone size for drives that > do not have a zone size equal to a power of 2 number of sectors. This > means that we can still have drives with ZC < ZS AND ZS not equal to a > power of 2. So from the point of view of your arguments, no gains at all. > Any thoughts on this ? You are right, a check should be added on bringup so that if npo2 is used, zone cap == zone size. That should be added on the next iteration of this patch. Luis