[PATCH 1/2] nvme-mpath: delete disk after last connection

Christoph Hellwig hch at lst.de
Mon Oct 5 08:50:54 EDT 2020


> -	nvme_mpath_remove_disk(head);
> +#ifdef CONFIG_NVME_MULTIPATH
> +	if (head->disk)
> +		put_disk(head->disk);
> +#endif

Please move this into a helper in multipath.c with a stub for the
non-multipath case.



More information about the Linux-nvme mailing list