diff options
Diffstat (limited to 'drivers/scsi/hptiop.c')
-rw-r--r-- | drivers/scsi/hptiop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c index a0e7e711ff9d..901a3daeb36b 100644 --- a/drivers/scsi/hptiop.c +++ b/drivers/scsi/hptiop.c | |||
@@ -861,10 +861,13 @@ static int hptiop_reset(struct scsi_cmnd *scp) | |||
861 | } | 861 | } |
862 | 862 | ||
863 | static int hptiop_adjust_disk_queue_depth(struct scsi_device *sdev, | 863 | static int hptiop_adjust_disk_queue_depth(struct scsi_device *sdev, |
864 | int queue_depth) | 864 | int queue_depth, int reason) |
865 | { | 865 | { |
866 | struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata; | 866 | struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata; |
867 | 867 | ||
868 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
869 | return -EOPNOTSUPP; | ||
870 | |||
868 | if (queue_depth > hba->max_requests) | 871 | if (queue_depth > hba->max_requests) |
869 | queue_depth = hba->max_requests; | 872 | queue_depth = hba->max_requests; |
870 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); | 873 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); |