[SCSI] scsi_error: disable eh_deadline if no host_reset_handler is set
authorHannes Reinecke <hare@suse.de>
Fri, 17 Jan 2014 15:05:38 +0000 (16:05 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:18:59 +0000 (10:18 -0700)
commitad469a57643b322dc7a3bfc482e265e1e88f735a
treee2513e85e9ba617e02ddc302a1acbfd10fff9fcf
parentf2495e228fce9f9cec84367547813cbb0d6db15a
[SCSI] scsi_error: disable eh_deadline if no host_reset_handler is set

When the host template doesn't declare an eh_host_reset_handler
the eh_deadline mechanism is pointless and will set the
device to offline. So disable eh_deadline if no
eh_host_reset_handler is present.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_sysfs.c