[PATCH] nvme/target: Change max_nsid in subsystem due to ns_disable if needed

Max Gurtovoy maxg at mellanox.com
Sat Oct 14 11:41:45 PDT 2017



On 10/10/2017 6:59 PM, roys at lightbitslabs.com wrote:
> From: Roy Shterman <roys at lightbitslabs.com>
> 
> In case we disable namespaces which has the nsid like
> subsystem max_nsid we need to search for the next largest nsid
> in this subsystem. If the subsystem don't has more namespaces
> we set it to 0, else we take nsid from the last namespace in
> namespaces list because the list is sorted while inserting.
> 
> Signed-off-by: Roy Shterman <roys at lightbitslabs.com>
> ---

Looks good,

Reviewed-by: Max Gurtovoy <maxg at mellanox.com>



More information about the Linux-nvme mailing list