]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] Set the minimum valid value of 'eh_deadline' as 0
authorRen Mingxin <renmx@cn.fujitsu.com>
Mon, 11 Nov 2013 12:44:56 +0000 (13:44 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 17 Dec 2013 14:26:30 +0000 (06:26 -0800)
commit722450dcfe4f479784c6027f1b3f8482f7536dc0
treef23091363b32ed17bae2967814bbab90c592d15f
parentc427c3212737363585ba77763df2f1bda87dbfe6
[SCSI] Set the minimum valid value of 'eh_deadline' as 0

The former minimum valid value of 'eh_deadline' is 1s, which means
the earliest occasion to shorten EH is 1 second later since a
command is failed or timed out. But if we want to skip EH steps
ASAP, we have to wait until the first EH step is finished. If the
duration of the first EH step is long, this waiting time is
excruciating. So, it is necessary to accept 0 as the minimum valid
value for 'eh_deadline'.

According to my test, with Hannes' patchset 'New EH command timeout
handler' as well, the minimum IO time is improved from 73s
(eh_deadline = 1) to 43s(eh_deadline = 0) when commands are timed
out by disabling RSCN and target port.

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