diff options
author | David Jeffery <dhjeffery@gmail.com> | 2011-05-19 22:41:12 +0400 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-24 20:51:53 +0400 |
commit | 3eef6257de48ff84a5d98ca533685df8a3beaeb8 (patch) | |
tree | 087372685b6d3069faf1a174c4b70778c3a51504 /fs/reiserfs | |
parent | 0bcaa11154f07502e68375617e5650173eea8e50 (diff) | |
download | linux-3eef6257de48ff84a5d98ca533685df8a3beaeb8.tar.xz |
[SCSI] Reduce error recovery time by reducing use of TURs
In error recovery, most scsi error recovery stages will send a TUR command
for every bad command when a driver's error handler reports success. When
several bad commands to the same device, this results in a device
being probed multiple times.
This becomes very problematic if the device or connection is in a state
where the device still doesn't respond to commands even after a recovery
function returns success. The error handler must wait for the test
commands to time out. The time waiting for the redundant commands can
drastically lengthen error recovery.
This patch alters the scsi mid-layer's error routines to send test commands
once per device instead of once per bad command. This can drastically
lower error recovery time.
[jejb: fixed up whitespace and formatting]
Signed-of-by: David Jeffery <djeffery@redhat.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions