diff options
author | Hannes Reinecke <hare@suse.de> | 2017-08-25 07:57:02 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 17:21:10 -0400 |
commit | cc199e78460565eeab0399875dbf9da8e2901c42 (patch) | |
tree | 53fe49ae0e3ea48630a92397239683c7066c7ee0 /drivers/scsi/pm8001/pm8001_init.c | |
parent | e13849b72a0b691d431c9b9964bfe785e3301219 (diff) |
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/pm8001/pm8001_init.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 2908881bad51..0e013f76b582 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -86,7 +86,7 @@ static struct scsi_host_template pm8001_sht = { | |||
86 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, | 86 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, |
87 | .use_clustering = ENABLE_CLUSTERING, | 87 | .use_clustering = ENABLE_CLUSTERING, |
88 | .eh_device_reset_handler = sas_eh_device_reset_handler, | 88 | .eh_device_reset_handler = sas_eh_device_reset_handler, |
89 | .eh_bus_reset_handler = sas_eh_bus_reset_handler, | 89 | .eh_target_reset_handler = sas_eh_target_reset_handler, |
90 | .target_destroy = sas_target_destroy, | 90 | .target_destroy = sas_target_destroy, |
91 | .ioctl = sas_ioctl, | 91 | .ioctl = sas_ioctl, |
92 | .shost_attrs = pm8001_host_attrs, | 92 | .shost_attrs = pm8001_host_attrs, |