From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 May 2018 10:16:31 +0200 From: Johannes Thumshirn To: Christoph Hellwig Cc: linux-nvme@lists.infradead.org, Jens Axboe , Keith Busch , Sagi Grimberg , Hannes Reinecke , linux-block@vger.kernel.org Subject: Re: [PATCH 08/14] nvmet: implement the changed namespaces log Message-ID: <20180529081631.mct6zjk54xjl4d6p@linux-x5ow.site> References: <20180526102735.31404-1-hch@lst.de> <20180526102735.31404-9-hch@lst.de> <20180528065342.hi74ewwbvkoqsj6x@linux-x5ow.site> <20180529081712.GD1416@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <20180529081712.GD1416@lst.de> List-ID: On Tue, May 29, 2018 at 10:17:12AM +0200, Christoph Hellwig wrote: > On Mon, May 28, 2018 at 08:53:42AM +0200, Johannes Thumshirn wrote: > > Reviewed-by: Johannes Thumshirn > > > > As a side note, what happens if more than 1024 Namespaces are changed > > (apart from setting the 1st element to 0xffffffff and zeroing out the > > rest)? > > > > The Spec is pretty silent in this regard. > > The spec is completly clear on this: > > From 5.14.1.4: > > "If more than 1024 namespaces have changed attributes since the last time the > log page was read, the first entry in the log page shall be set to FFFFFFFFh > and the remainder of the list shall be zero-filled." > > Once we don't know what changed we'll have to do a full rescan using > Identify. The "full rescan" part was what I couldn't read out of the spec. Thanks, Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg GF: Felix Imend�rffer, Jane Smithard, Graham Norton HRB 21284 (AG N�rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850 From mboxrd@z Thu Jan 1 00:00:00 1970 From: jthumshirn@suse.de (Johannes Thumshirn) Date: Tue, 29 May 2018 10:16:31 +0200 Subject: [PATCH 08/14] nvmet: implement the changed namespaces log In-Reply-To: <20180529081712.GD1416@lst.de> References: <20180526102735.31404-1-hch@lst.de> <20180526102735.31404-9-hch@lst.de> <20180528065342.hi74ewwbvkoqsj6x@linux-x5ow.site> <20180529081712.GD1416@lst.de> Message-ID: <20180529081631.mct6zjk54xjl4d6p@linux-x5ow.site> On Tue, May 29, 2018@10:17:12AM +0200, Christoph Hellwig wrote: > On Mon, May 28, 2018@08:53:42AM +0200, Johannes Thumshirn wrote: > > Reviewed-by: Johannes Thumshirn > > > > As a side note, what happens if more than 1024 Namespaces are changed > > (apart from setting the 1st element to 0xffffffff and zeroing out the > > rest)? > > > > The Spec is pretty silent in this regard. > > The spec is completly clear on this: > > From 5.14.1.4: > > "If more than 1024 namespaces have changed attributes since the last time the > log page was read, the first entry in the log page shall be set to FFFFFFFFh > and the remainder of the list shall be zero-filled." > > Once we don't know what changed we'll have to do a full rescan using > Identify. The "full rescan" part was what I couldn't read out of the spec. Thanks, Johannes -- Johannes Thumshirn Storage jthumshirn at suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850