[PATCH v2 3/3] nvme/multipath: fix stale ana state for namespaces just added by scan work
Keith Busch
kbusch at kernel.org
Mon Sep 13 09:24:07 PDT 2021
On Mon, Sep 13, 2021 at 06:11:04PM +0200, Christoph Hellwig wrote:
> On Mon, Sep 13, 2021 at 09:07:56AM -0700, Keith Busch wrote:
> > I guess this works for the structures we have in place, but I think we
> > should replace the sorted list and with xarray. Then you can get
> > something simpler to follow like:
>
> I guess that's fine for the short term. It mean we'll have to walk
> the list for every namespace in the decriptor, but I've not actually
> seen deployments with crazy numbers of namespaces yet.
Oh, my suggestion depends on using the xarray implementation since the
current nvme_find_get_ns() also depends on a sorted list. Lookup
time with an xarray doesn't change with the number of namespaces, so
even a controller with lots of them should be fine if someone wants to make
such a device.
More information about the Linux-nvme
mailing list