Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1332520ybe; Thu, 5 Sep 2019 13:57:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfDUC8ZmxEKWSQHtKdyKof03KCQOPJ2NBl4DjnjkYqqvqYilXIAgwOlplTJ4rjWneaib2N X-Received: by 2002:a17:90a:bc08:: with SMTP id w8mr3543269pjr.80.1567717063012; Thu, 05 Sep 2019 13:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567717063; cv=none; d=google.com; s=arc-20160816; b=FyfSbLLQmvPXPRWiV9vpV1ymYeKqXK2FaZSEXMk3+Oa6t8Ab3Df/vfIO0BcNJYXmOI db9cUrS3Pu7ujHwdnOl20tS12Jtg3iDDSQ79eUvdOPhcUbIUSNJaIoYss+O/9I50GfNf aUoJiswJjRSk8ZX/gw8C1fDDnMwROofR9SvcTyrHreYpAWfk+8HFPJQd1+EH/vOCE2AO nELI7bZ0bW7lIUEX81vidawfX9JpyK5Ig6LtLP6tL4SGsoHsmwrEBxRtUv2tWBHLUopu JHvVi1S5uv0HNK1iFXuCFxooVyOoLfjn1uFdtzTFWxf2uWsZYFqCOwZwCBCFIFVz4Q88 JRmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=59JZL5cBsL7ePV3UJUIhQnFUWzQnvfvQxLGYnwsmdVQ=; b=Q6xBzHOYY1QDmV63BjVmRYryTMdrVOl56JA7zsENdLMG1VCtqhhPfQw0h93r/NDTd9 3xyRIFbBfAs38hTHqQLSVFkju1uSXvC7Mfd5XObzov2Io4MpDbcsKooiALCiBMACSNWu AdFa2/ArtmdGPch7Lxj+ArNHsUo4HA4vZygMkIxqAc0rTtCqAonV0PUa31AZVCokRjEF S+4WsZmuxGahd0LxeElm44BW/AhjFUC1zjqL2xJqqIj54IN491tff+Ii+3Rhqams+QVx A34y7xl1ObfE+OPCWgCO6afksidgPIxGzMHkbkyiM5BtpqHAEPe0RuTevzLL/3Xlk3gW huUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si3043184pls.148.2019.09.05.13.57.25; Thu, 05 Sep 2019 13:57:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728916AbfIEQLj (ORCPT + 99 others); Thu, 5 Sep 2019 12:11:39 -0400 Received: from verein.lst.de ([213.95.11.211]:50003 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbfIEQLj (ORCPT ); Thu, 5 Sep 2019 12:11:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 0B01668B05; Thu, 5 Sep 2019 18:11:35 +0200 (CEST) Date: Thu, 5 Sep 2019 18:11:34 +0200 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , linux-nvme@lists.infradead.org, Sagi Grimberg , Logan Gunthorpe , Hannes Reinecke , "Martin K . Petersen" , linux-kernel@vger.kernel.org, Jens Axboe Subject: Re: [PATCH] nvme: Restore device naming sanity Message-ID: <20190905161134.GA22363@lst.de> References: <20190904173159.22921-1-kbusch@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190904173159.22921-1-kbusch@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 11:31:59AM -0600, Keith Busch wrote: > The namespace names must be unique for the lifetime of the subsystem. > This was accomplished by using their parent subsystems' instances which > was independent of the controllers connected to that subsystem. > > The consequence of that naming scheme meant that name prefixes given to > namespaces may match a controller from an unrelated subsystem. This has > understandbly invited confusion when examining device nodes. > > Ensure the namespace's subsystem instance never clashes with a > controller instance of another subsystem by transferring the instance > ownership to parent subsystem from the first controller discovered in > that subsystem. Sanitity sounds a little exaggerated. The nvme naming isn't really that different except that the block devices uses number where say scsi uses letters. So maybe tone down that claim a bit, but otherwise the patch looks fine.