Skip to content
Commit 3eef6257 authored by David Jeffery's avatar David Jeffery Committed by James Bottomley
Browse files

[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: default avatarDavid Jeffery <djeffery@redhat.com>
Signed-off-by: default avatarJames Bottomley <jbottomley@parallels.com>
parent 0bcaa111
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment