From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 Aug 2017 10:29:31 +0200 From: Christoph Hellwig To: Guan Junxiong Cc: Jens Axboe , Christoph Hellwig , Keith Busch , linux-block@vger.kernel.org, Sagi Grimberg , linux-nvme@lists.infradead.org, "Shenhong (C)" , niuhaoxin Subject: Re: [PATCH 07/10] nvme: track shared namespaces Message-ID: <20170829082931.GB10487@lst.de> References: <20170823175815.3646-1-hch@lst.de> <20170823175815.3646-8-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-ID: On Mon, Aug 28, 2017 at 08:41:23PM +0800, Guan Junxiong wrote: > If a namespace can be accessed by another subsystem, the above line > will ignore such namespace. > > Or does the NVMe/NVMf specification constrain that any namespace > can only be accessed by a subsystem? A namespace is a part of a NVMe subsystem. You must not reuse the uniqueue identifier outside the subsystem scope or your implementation will be non-compliant. From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Tue, 29 Aug 2017 10:29:31 +0200 Subject: [PATCH 07/10] nvme: track shared namespaces In-Reply-To: References: <20170823175815.3646-1-hch@lst.de> <20170823175815.3646-8-hch@lst.de> Message-ID: <20170829082931.GB10487@lst.de> On Mon, Aug 28, 2017@08:41:23PM +0800, Guan Junxiong wrote: > If a namespace can be accessed by another subsystem, the above line > will ignore such namespace. > > Or does the NVMe/NVMf specification constrain that any namespace > can only be accessed by a subsystem? A namespace is a part of a NVMe subsystem. You must not reuse the uniqueue identifier outside the subsystem scope or your implementation will be non-compliant.