diff options
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 1466a5aed5f8..0e402eb95716 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -2290,7 +2290,10 @@ mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth) | |||
2290 | else | 2290 | else |
2291 | max_depth = MPT_SCSI_CMD_PER_DEV_LOW; | 2291 | max_depth = MPT_SCSI_CMD_PER_DEV_LOW; |
2292 | } else | 2292 | } else |
2293 | max_depth = MPT_SCSI_CMD_PER_DEV_HIGH; | 2293 | max_depth = ioc->sh->can_queue; |
2294 | |||
2295 | if (!sdev->tagged_supported) | ||
2296 | max_depth = 1; | ||
2294 | 2297 | ||
2295 | if (qdepth > max_depth) | 2298 | if (qdepth > max_depth) |
2296 | qdepth = max_depth; | 2299 | qdepth = max_depth; |