diff options
| author | John Garry <[email protected]> | 2021-05-19 22:31:02 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-05-22 00:34:39 -0400 |
| commit | ea2f0f77538c50739b9fb4de4700cee5535e1f77 (patch) | |
| tree | d00ad2fbb7d601043caf5549810d13a74294e555 /tools/perf/scripts/python | |
| parent | e5e0280db792953ee7acbdbf01179d53187a6083 (diff) | |
scsi: core: Cap scsi_host cmd_per_lun at can_queue
The sysfs handling function sdev_store_queue_depth() enforces that the sdev
queue depth cannot exceed shost can_queue. The initial sdev queue depth
comes from shost cmd_per_lun. However, the LLDD may manually set
cmd_per_lun to be larger than can_queue, which leads to an initial sdev
queue depth greater than can_queue.
Such an issue was reported in [0], which caused a hang. That has since been
fixed in commit fc09acb7de31 ("scsi: scsi_debug: Fix cmd_per_lun, set to
max_queue").
Stop this possibly happening for other drivers by capping shost cmd_per_lun
at shost can_queue.
[0] https://lore.kernel.org/linux-scsi/YHaez6iN2HHYxYOh@T590/
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions