diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-13 09:08:42 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-24 08:45:27 -0500 |
commit | db5ed4dfd5dd0142ec36ff7b335e0ec3b836b3e6 (patch) | |
tree | 6cae824b5c9e5a7fd9d213e3f9c2b1c7dc8b7b8a /drivers/scsi/libsas/sas_scsi_host.c | |
parent | 1e6f2416044c062a56091ebf8d76760956dd5872 (diff) |
scsi: drop reason argument from ->change_queue_depth
Drop the now unused reason argument from the ->change_queue_depth method.
Also add a return value to scsi_adjust_queue_depth, and rename it to
scsi_change_queue_depth now that it can be used as the default
->change_queue_depth implementation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/libsas/sas_scsi_host.c')
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 914e41165137..b492293d51f2 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -940,12 +940,12 @@ int sas_slave_configure(struct scsi_device *scsi_dev) | |||
940 | sas_read_port_mode_page(scsi_dev); | 940 | sas_read_port_mode_page(scsi_dev); |
941 | 941 | ||
942 | if (scsi_dev->tagged_supported) { | 942 | if (scsi_dev->tagged_supported) { |
943 | scsi_adjust_queue_depth(scsi_dev, SAS_DEF_QD); | 943 | scsi_change_queue_depth(scsi_dev, SAS_DEF_QD); |
944 | } else { | 944 | } else { |
945 | SAS_DPRINTK("device %llx, LUN %llx doesn't support " | 945 | SAS_DPRINTK("device %llx, LUN %llx doesn't support " |
946 | "TCQ\n", SAS_ADDR(dev->sas_addr), | 946 | "TCQ\n", SAS_ADDR(dev->sas_addr), |
947 | scsi_dev->lun); | 947 | scsi_dev->lun); |
948 | scsi_adjust_queue_depth(scsi_dev, 1); | 948 | scsi_change_queue_depth(scsi_dev, 1); |
949 | } | 949 | } |
950 | 950 | ||
951 | scsi_dev->allow_restart = 1; | 951 | scsi_dev->allow_restart = 1; |
@@ -953,18 +953,16 @@ int sas_slave_configure(struct scsi_device *scsi_dev) | |||
953 | return 0; | 953 | return 0; |
954 | } | 954 | } |
955 | 955 | ||
956 | int sas_change_queue_depth(struct scsi_device *sdev, int depth, int reason) | 956 | int sas_change_queue_depth(struct scsi_device *sdev, int depth) |
957 | { | 957 | { |
958 | struct domain_device *dev = sdev_to_domain_dev(sdev); | 958 | struct domain_device *dev = sdev_to_domain_dev(sdev); |
959 | 959 | ||
960 | if (dev_is_sata(dev)) | 960 | if (dev_is_sata(dev)) |
961 | return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth, | 961 | return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth); |
962 | reason); | ||
963 | 962 | ||
964 | if (!sdev->tagged_supported) | 963 | if (!sdev->tagged_supported) |
965 | depth = 1; | 964 | depth = 1; |
966 | scsi_adjust_queue_depth(sdev, depth); | 965 | return scsi_change_queue_depth(sdev, depth); |
967 | return depth; | ||
968 | } | 966 | } |
969 | 967 | ||
970 | int sas_change_queue_type(struct scsi_device *scsi_dev, int type) | 968 | int sas_change_queue_type(struct scsi_device *scsi_dev, int type) |