[PATCH 8/8] nvme-loop: add a NVMe loopback device

Sagi Grimberg sagig at dev.mellanox.co.il
Sun Nov 8 02:54:12 PST 2015


> +static void nvme_loop_free_ctrl(struct nvme_ctrl *nctrl)
> +{
> +	struct nvme_loop_ctrl *ctrl = to_loop_ctrl(nctrl);
> +
> +	list_del(&ctrl->list);

This should be list_del_init so that cleanup_module
list_empty() check will be correct. unloading nvme-loop
with active controllers is getting a list corruption.



More information about the Linux-nvme mailing list