[PATCH 1/5] nvme: track subsystems
Christoph Hellwig
hch at lst.de
Thu Nov 9 04:53:56 PST 2017
On Thu, Nov 09, 2017 at 01:33:16PM +0200, Sagi Grimberg wrote:
> Any reason to do all this before we know if we found an existing subsystem?
We'd either have to do all the initialization including the memory
allocation and ida_simple_get under nvme_subsystems_lock, or search
the list first, then allocate, then search again.
Given that the not found case is vastly more common than the found
case that doesn't seem to be worth the tradeoff.
> Also can the enumeration become with "holes" because you
> acquire a subsystem ida temporarily and free it (and another subsystem
> just came in)? Not a big issue though...
It can, just like it can for the discovery controller in fabrics.
but so far that hasn't been an issue.
More information about the Linux-nvme
mailing list