summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas
diff options
context:
space:
mode:
authorHannes Reinecke2017-08-25 13:57:02 +0200
committerMartin K. Petersen2017-08-25 23:21:10 +0200
commitcc199e78460565eeab0399875dbf9da8e2901c42 (patch)
tree53fe49ae0e3ea48630a92397239683c7066c7ee0 /drivers/scsi/hisi_sas
parentscsi: uas: move eh_bus_reset_handler to eh_device_reset_handler (diff)
downloadkernel-qcow2-linux-cc199e78460565eeab0399875dbf9da8e2901c42.tar.gz
kernel-qcow2-linux-cc199e78460565eeab0399875dbf9da8e2901c42.tar.xz
kernel-qcow2-linux-cc199e78460565eeab0399875dbf9da8e2901c42.zip
scsi: libsas: move bus_reset_handler() to target_reset_handler()
The bus reset handler is calling I_T Nexus reset, which logically is a target reset as it need to specify both the initiator and the target. So move it to target reset. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index bdef111434b8..16664f2e15fb 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -1562,7 +1562,7 @@ static struct scsi_host_template _hisi_sas_sht = {
.max_sectors = SCSI_DEFAULT_MAX_SECTORS,
.use_clustering = ENABLE_CLUSTERING,
.eh_device_reset_handler = sas_eh_device_reset_handler,
- .eh_bus_reset_handler = sas_eh_bus_reset_handler,
+ .eh_target_reset_handler = sas_eh_target_reset_handler,
.target_destroy = sas_target_destroy,
.ioctl = sas_ioctl,
};