[PATCH 17/18] nvme: move namespace scanning to common code

Busch, Keith keith.busch at intel.com
Thu Oct 22 06:48:30 PDT 2015

> -----Original Message-----
> From: Christoph Hellwig [mailto:hch at lst.de]
> Sent: Thursday, October 22, 2015 1:40 AM
> To: J Freyensee
> Cc: Christoph Hellwig; axboe at fb.com; Busch, Keith; Sternberg, Jay E; Cayton, Phil;
> mlin at kernel.org; linux-nvme at lists.infradead.org
> Subject: Re: [PATCH 17/18] nvme: move namespace scanning to common code
> On Wed, Oct 21, 2015 at 04:27:39PM -0700, J Freyensee wrote:
> > I know this is basically just a move into core.c, but with the concept
> > of namespace management in the 1.2 spec, would something like
> > list_for_each_entry_safe() and/or a spinlock be more appropriate?
> Yes, someone should sit down and think about the concurrency model
> for namespace scanning.  Also we really should look into using Identify
> for the active name space list as that will be a lot more efficient for
> controllers with lots of namespaces.

Here's a namespace list proposal:


I'll rebase it on the latest and resend.

More information about the Linux-nvme mailing list