aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-08-25 07:56:57 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-25 17:21:10 -0400
commitfdad4aafe4f5ae7c8643a1509c32ce75e8bf7c6c (patch)
tree15fe99d88f56045acac0a5eac852430de4679bac /drivers/message/fusion
parent23cb27fd679cec8322a376c046dc79b47c30bbd4 (diff)
scsi: mptfc: Do not call fc_block_scsi_eh() on host reset
When we're resetting the host any remote port states will be reset anyway, so it's pointless to wait for dev_loss_tmo during host reset. Signed-off-by: Hannes Reinecke <hare@suse.de> 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/message/fusion')
-rw-r--r--drivers/message/fusion/mptfc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
index d065062240bc..6d461ca97150 100644
--- a/drivers/message/fusion/mptfc.c
+++ b/drivers/message/fusion/mptfc.c
@@ -104,7 +104,6 @@ static void mptfc_remove(struct pci_dev *pdev);
104static int mptfc_abort(struct scsi_cmnd *SCpnt); 104static int mptfc_abort(struct scsi_cmnd *SCpnt);
105static int mptfc_dev_reset(struct scsi_cmnd *SCpnt); 105static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
106static int mptfc_bus_reset(struct scsi_cmnd *SCpnt); 106static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
107static int mptfc_host_reset(struct scsi_cmnd *SCpnt);
108 107
109static struct scsi_host_template mptfc_driver_template = { 108static struct scsi_host_template mptfc_driver_template = {
110 .module = THIS_MODULE, 109 .module = THIS_MODULE,
@@ -123,7 +122,7 @@ static struct scsi_host_template mptfc_driver_template = {
123 .eh_abort_handler = mptfc_abort, 122 .eh_abort_handler = mptfc_abort,
124 .eh_device_reset_handler = mptfc_dev_reset, 123 .eh_device_reset_handler = mptfc_dev_reset,
125 .eh_bus_reset_handler = mptfc_bus_reset, 124 .eh_bus_reset_handler = mptfc_bus_reset,
126 .eh_host_reset_handler = mptfc_host_reset, 125 .eh_host_reset_handler = mptscsih_host_reset,
127 .bios_param = mptscsih_bios_param, 126 .bios_param = mptscsih_bios_param,
128 .can_queue = MPT_FC_CAN_QUEUE, 127 .can_queue = MPT_FC_CAN_QUEUE,
129 .this_id = -1, 128 .this_id = -1,
@@ -254,13 +253,6 @@ mptfc_bus_reset(struct scsi_cmnd *SCpnt)
254 mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__); 253 mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__);
255} 254}
256 255
257static int
258mptfc_host_reset(struct scsi_cmnd *SCpnt)
259{
260 return
261 mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __func__);
262}
263
264static void 256static void
265mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) 257mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout)
266{ 258{