[PATCH 4/5] scsi: use block layer helpers to calculate num of queues

Chaitanya Kulkarni chaitanyak at nvidia.com
Tue Jun 24 21:37:50 PDT 2025


On 6/17/25 06:43, Daniel Wagner wrote:
> The calculation of the upper limit for queues does not depend solely on
> the number of online CPUs; for example, the isolcpus kernel
> command-line option must also be considered.
>
> To account for this, the block layer provides a helper function to
> retrieve the maximum number of queues. Use it to set an appropriate
> upper queue number limit.
>
> Reviewed-by: Martin K. Petersen<martin.petersen at oracle.com>
> Reviewed-by: Hannes Reinecke<hare at suse.de>
> Reviewed-by: Ming Lei<ming.lei at redhat.com>
> Signed-off-by: Daniel Wagner<wagi at kernel.org>


Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck


More information about the Linux-nvme mailing list