Files
linux-stable-mirror/drivers/scsi
Daniel Wagner 0a50ed0574 virtio: blk/scsi: use block layer helpers to calculate num of queues
The calculation of the upper limit for queues does not depend solely on
the number of possible 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: Christoph Hellwig <hch@lst.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20250617-isolcpus-queue-counters-v1-5-13923686b54b@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-07-01 10:24:19 -06:00
..
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-03-10 18:15:48 -04:00
2024-12-09 21:59:52 -05:00
2025-01-02 13:42:35 -05:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2025-02-03 18:04:55 -05:00
2024-08-12 22:05:50 -04:00
2024-08-12 22:05:50 -04:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2025-04-22 16:06:08 +09:00
2024-06-20 15:19:17 -06:00
2024-12-09 21:59:52 -05:00