[PATCH] nvme: keep ctrl->namespaces ordered

Chaitanya Kulkarni chaitanyak at nvidia.com
Thu Sep 16 09:53:02 PDT 2021


On 9/15/21 8:37 AM, 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>

No sorting logic anymore :).

Looks good to me.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>




More information about the Linux-nvme mailing list