[libata] Improve timeout handling
On a timeout call a device specific handler early in the recovery so that we can complete and process successful commands which timed out due to IRQ loss or the like rather more elegantly. [Revised to exclude the timeout handling on a few devices that inherit from SFF but are not SFF enough to use the default timeout handler] Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
@@ -308,6 +308,9 @@ static struct scsi_host_template vsc_sata_sht = {
|
||||
|
||||
static struct ata_port_operations vsc_sata_ops = {
|
||||
.inherits = &ata_bmdma_port_ops,
|
||||
/* The IRQ handling is not quite standard SFF behaviour so we
|
||||
cannot use the default lost interrupt handler */
|
||||
.lost_interrupt = ATA_OP_NULL,
|
||||
.sff_tf_load = vsc_sata_tf_load,
|
||||
.sff_tf_read = vsc_sata_tf_read,
|
||||
.freeze = vsc_freeze,
|
||||
|
||||
Reference in New Issue
Block a user