Thread (8 messages) 8 messages, 4 authors, 2021-10-06

Re: [PATCH] scsi: storvsc: Cap scsi_driver.can_queue to fix a hang issue during boot

flat view

From: John Garry <hidden>
Date: 2021-10-06 16:21:33
Also in: linux-scsi, lkml, stable

On 06/10/2021 17:08, Michael Kelley wrote:
quoted
quoted
The calculated value of can_queue is not realistic.  The blk-mq layer
caps the number of tags at 10240,
nit: 1024, I think
I was thinking about BLK_MQ_MAX_DEPTH (#define'd as 10240), which
is used to limit the tag set size in blk_mq_alloc_tag_set().   When running
on large VMs on Hyper-V, we can see the "blk-mq: reduced tag depth
to 10240" message.:-(
Ah, right. The other related capping is the sdev queue depth, which is now capped at max(1024, can_queue), see scsi_device_max_queue_depth().

Thanks,
John
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help