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

Christoph Hellwig hch at infradead.org
Thu Oct 19 02:01:22 PDT 2017


> +	if (list_empty(&subsys->namespaces)) {
> +		subsys->max_nsid = 0;
> +	} else {
> +		struct nvmet_ns *ns =
> +			list_last_entry(&subsys->namespaces, struct nvmet_ns, dev_link);
> +
> +		subsys->max_nsid = ns->nsid;
> +	}

The line is still too long, but I'll fix it up.



More information about the Linux-nvme mailing list