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

Sagi Grimberg sagig at dev.mellanox.co.il
Sun Nov 15 11:18:34 PST 2015


> +	ctrl->queue_count = 1; /* admin queue */;
> +	if (nr_io_queues > 0)
> +		ctrl->queue_count += nr_io_queues;
> +	else
> +		ctrl->queue_count += num_possible_cpus();

This should really be num_online_cpus(), I get way more than
I need with num_possible_cpus()...



More information about the Linux-nvme mailing list