[PATCH] nvme: keep ctrl->namespaces ordered

Keith Busch kbusch at kernel.org
Wed Sep 15 07:02:02 PDT 2021


On Wed, Sep 15, 2021 at 09:20:06AM +0200, Christoph Hellwig wrote:
> Various places in the nvme code that rely on ctrl->namespace to be
> ordered.  Ensure that the namespae is inserted into the list at the
> right position from the start instead of sorting it after the fact.
> 
> Fixes: 540c801c65eb ("NVMe: Implement namespace list scanning")
> Reported-by: Anton Eidelman <anton.eidelman at gmail.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>

The v1 looks good.

Reviewed-by: Keith Busch <kbusch at kernel.org>



More information about the Linux-nvme mailing list