Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4116394pxj; Tue, 25 May 2021 00:23:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB+ZT5+qEhMY3zgrfi2OdzUjx2yitsfashyG4gf3yXddXRMHDZNz0u/OObCCEj+Hit+OxW X-Received: by 2002:a92:b07:: with SMTP id b7mr17728847ilf.268.1621927423356; Tue, 25 May 2021 00:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621927423; cv=none; d=google.com; s=arc-20160816; b=II7jrMgTLCjaxrC1voqlQ2JRE13mwScg+hrT5soaySK0kdZF29AtO+zonROMqOl15g ZvDpfU1B8VIpnG9HXWwXMRyUfx2c5BVAxkLp5N+LPrrO380Aq1iZ/0/DHCrn7ZVC3zI2 dhT06L5UQ2VppEmc4R+aBjJTAqNiyPXF6OTl0xXipN+v/np41MPawvm44qIB3L8P0K0R n21oGizPC0QkP05TFdtW3DfDENAIA9tXaG2dRoIvSFbYeiDFhUDKmSRUw439TRQGqVyY Dd27ZyJ+z0OzjbAqcFotFYiv3o3LD2ovplGaV6LXVZkeuIe/6LnAxqnbjpFEDGcNc544 cpWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rh9CvNo6cWV+GHxQAaidzWObP0mq2FjsVDj8zRPBbKc=; b=fXIxYBvOL0/AW9571RGXZMmBkEFsSsL/v/yMNWuBrkj1EGMzTGKXjdy0NLRGnBnt3C Ab3Wwuk6SpP5hAK4TBN9KrrAMnzQWwEPDXiJVHa8/KCELq57nVtuDFpt2yPyVK9mZfss nd/2TfU8RyPgiH/poJUizO9lvWwXRO83zKcZZ9LHLDOdCdLoI14Vc7JNlHf07dI+mIV6 zPhozF6Ny15o/tsX8wTjT7/8AsPk68GZhWcFAWW3HkmRhoj68r+HAqFGFchTcRznU6um JA+euVCHbtHrVF8Tn5w2SPBkTr9Mjgoi1EmvsKbuxOgtF8Xj/wc9LR8TxI6X5REMPE8M Ha+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si15582737ilo.151.2021.05.25.00.23.29; Tue, 25 May 2021 00:23:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbhEYHYK (ORCPT + 99 others); Tue, 25 May 2021 03:24:10 -0400 Received: from verein.lst.de ([213.95.11.211]:57903 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbhEYHYK (ORCPT ); Tue, 25 May 2021 03:24:10 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 50A2467357; Tue, 25 May 2021 09:22:35 +0200 (CEST) Date: Tue, 25 May 2021 09:22:34 +0200 From: Christoph Hellwig To: Daniel Wagner Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe Subject: Re: [PATCH] nvme: Use NN for max_namespaces if MNAN is zero Message-ID: <20210525072234.GA13966@lst.de> References: <20210521144734.90044-1-dwagner@suse.de> <20210521145306.ld7jc6alchimyzny@beryllium.lan> <20210521152702.GB29013@redsun51.ssa.fujisawa.hgst.com> <20210524073703.GA24372@lst.de> <20210525071259.j5g7koxqad7hwpkp@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210525071259.j5g7koxqad7hwpkp@beryllium.lan> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 09:12:59AM +0200, Daniel Wagner wrote: > On Mon, May 24, 2021 at 09:37:03AM +0200, Christoph Hellwig wrote: > > I think we should add a sanity check for that and reject the broken > > controller if that is not the case rather than working around it. > > Alright. I understood from the spec, that in the non ANA case the NN > field should still be case though? For non-ANA MNAN doesn't have to be set indeed. But we also don't use the value at all either.