[PATCH 15/17] nvme: track shared namespaces

Sagi Grimberg sagi at grimberg.me
Thu Oct 19 04:06:07 PDT 2017


Christoph,

>   static void nvme_free_ns(struct kref *kref)
>   {
>   	struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref);
>   
> +	if (ns->head)
> +		nvme_put_ns_head(ns->head);
> +

When can we not have a ns-head set?

AFAICT, if nvme_alloc_ns succeeded, we have it set don't we?



More information about the Linux-nvme mailing list