ata_to_sense_error
Name
ata_to_sense_error -- convert ATA error to SCSI error
Synopsis
void ata_to_sense_error
(struct ata_queued_cmd * qc);
Arguments
qc
Command that we are erroring out
Description
Converts an ATA error into a SCSI error.
Right now, this routine is laughably primitive. We
don't even examine what ATA told us, we just look at
the command data direction, and return a fatal SCSI
sense error based on that.
LOCKING
spin_lock_irqsave(host_set lock)