diff options
| author | Bart Van Assche <[email protected]> | 2021-12-03 15:19:34 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-12-06 22:30:32 -0500 |
| commit | 4bc3bffc1a885eb5cb259e4a25146a4c7b1034e3 (patch) | |
| tree | 3deac6d08c8d57a4b2155ef8dc22e2c0fa6d442e /scripts/objdiff | |
| parent | c27fd25db39b8f16aeda8563d4be6f33e59d07d1 (diff) | |
scsi: core: Fix scsi_device_max_queue_depth()
The comment above scsi_device_max_queue_depth() and also the description of
commit ca4453213951 ("scsi: core: Make sure sdev->queue_depth is <=
max(shost->can_queue, 1024)") contradict the implementation of the function
scsi_device_max_queue_depth(). Additionally, the maximum queue depth of a
SCSI LUN never exceeds host->can_queue. Fix scsi_device_max_queue_depth()
by changing max_t() into min_t().
Link: https://lore.kernel.org/r/[email protected]
Fixes: ca4453213951 ("scsi: core: Make sure sdev->queue_depth is <= max(shost->can_queue, 1024)")
Cc: Hannes Reinecke <[email protected]>
Cc: Sumanesh Samanta <[email protected]>
Tested-by: Bean Huo <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Bean Huo <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions