diff options
Diffstat (limited to 'drivers/scsi/libsas/sas_scsi_host.c')
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 1c558d3bce18..14b13196b22d 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -820,10 +820,14 @@ void sas_slave_destroy(struct scsi_device *scsi_dev) | |||
820 | ata_port_disable(dev->sata_dev.ap); | 820 | ata_port_disable(dev->sata_dev.ap); |
821 | } | 821 | } |
822 | 822 | ||
823 | int sas_change_queue_depth(struct scsi_device *scsi_dev, int new_depth) | 823 | int sas_change_queue_depth(struct scsi_device *scsi_dev, int new_depth, |
824 | int reason) | ||
824 | { | 825 | { |
825 | int res = min(new_depth, SAS_MAX_QD); | 826 | int res = min(new_depth, SAS_MAX_QD); |
826 | 827 | ||
828 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
829 | return -EOPNOTSUPP; | ||
830 | |||
827 | if (scsi_dev->tagged_supported) | 831 | if (scsi_dev->tagged_supported) |
828 | scsi_adjust_queue_depth(scsi_dev, scsi_get_tag_type(scsi_dev), | 832 | scsi_adjust_queue_depth(scsi_dev, scsi_get_tag_type(scsi_dev), |
829 | res); | 833 | res); |