[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)
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

Simple merge
Simple merge