diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-30 07:18:57 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-06 19:09:12 -0500 |
commit | 28917d40e63a65c3923d45ed190c748e45b90ac7 (patch) | |
tree | eb8eba87812db0b0efb43c2022f901665f280e65 | |
parent | 103eb3b5d0f2cc2771b3c49181dd22f73735aaf2 (diff) |
scsi: libsas: remove sas_scsi_timed_out
EH_NOT_HANDLED is the default case if no eh_timed_out method is
provided, so there is no need to supply it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/libsas/sas_init.c | 1 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_internal.h | 2 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 7 |
3 files changed, 0 insertions, 10 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index 362da44f2948..15ef8e2e685c 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c | |||
@@ -560,7 +560,6 @@ sas_domain_attach_transport(struct sas_domain_function_template *dft) | |||
560 | i = to_sas_internal(stt); | 560 | i = to_sas_internal(stt); |
561 | i->dft = dft; | 561 | i->dft = dft; |
562 | stt->create_work_queue = 1; | 562 | stt->create_work_queue = 1; |
563 | stt->eh_timed_out = sas_scsi_timed_out; | ||
564 | stt->eh_strategy_handler = sas_scsi_recover_host; | 563 | stt->eh_strategy_handler = sas_scsi_recover_host; |
565 | 564 | ||
566 | return stt; | 565 | return stt; |
diff --git a/drivers/scsi/libsas/sas_internal.h b/drivers/scsi/libsas/sas_internal.h index 9cf0bc260b0e..b306b7843d99 100644 --- a/drivers/scsi/libsas/sas_internal.h +++ b/drivers/scsi/libsas/sas_internal.h | |||
@@ -64,8 +64,6 @@ void sas_unregister_phys(struct sas_ha_struct *sas_ha); | |||
64 | int sas_register_ports(struct sas_ha_struct *sas_ha); | 64 | int sas_register_ports(struct sas_ha_struct *sas_ha); |
65 | void sas_unregister_ports(struct sas_ha_struct *sas_ha); | 65 | void sas_unregister_ports(struct sas_ha_struct *sas_ha); |
66 | 66 | ||
67 | enum blk_eh_timer_return sas_scsi_timed_out(struct scsi_cmnd *); | ||
68 | |||
69 | int sas_init_events(struct sas_ha_struct *sas_ha); | 67 | int sas_init_events(struct sas_ha_struct *sas_ha); |
70 | void sas_disable_revalidation(struct sas_ha_struct *ha); | 68 | void sas_disable_revalidation(struct sas_ha_struct *ha); |
71 | void sas_enable_revalidation(struct sas_ha_struct *ha); | 69 | void sas_enable_revalidation(struct sas_ha_struct *ha); |
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 519dac4e341e..9bd55bce83af 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -803,13 +803,6 @@ out: | |||
803 | shost->host_failed, tries); | 803 | shost->host_failed, tries); |
804 | } | 804 | } |
805 | 805 | ||
806 | enum blk_eh_timer_return sas_scsi_timed_out(struct scsi_cmnd *cmd) | ||
807 | { | ||
808 | scmd_dbg(cmd, "command %p timed out\n", cmd); | ||
809 | |||
810 | return BLK_EH_NOT_HANDLED; | ||
811 | } | ||
812 | |||
813 | int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) | 806 | int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) |
814 | { | 807 | { |
815 | struct domain_device *dev = sdev_to_domain_dev(sdev); | 808 | struct domain_device *dev = sdev_to_domain_dev(sdev); |