aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2007-01-30 01:18:58 -0800
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-18 11:16:03 -0500
commit3a2755af37b317d47fdc3dd15178adaf5d47263e (patch)
tree1d4bca0573db7d4a19a4feac5a14855764a3f3fb /include/scsi
parent[SCSI] sas_ata: Assign sas_task to scsi_cmnd to enable EH for ATA devices (diff)
downloadlinux-dev-3a2755af37b317d47fdc3dd15178adaf5d47263e.tar.xz
linux-dev-3a2755af37b317d47fdc3dd15178adaf5d47263e.zip
[SCSI] sas_ata: Implement sas_task_abort for ATA devices
ATA devices need special handling for sas_task_abort. If the ATA command came from SCSI, then we merely need to tell SCSI to abort the scsi_cmnd. However, internal commands require a bit more work--we need to fill the qc with the appropriate error status and complete the command, and eventually post_internal will issue the actual ABORT TASK. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/sas_ata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h
index 72a1904169a5..3407c819522d 100644
--- a/include/scsi/sas_ata.h
+++ b/include/scsi/sas_ata.h
@@ -36,4 +36,6 @@ static inline int dev_is_sata(struct domain_device *dev)
int sas_ata_init_host_and_port(struct domain_device *found_dev,
struct scsi_target *starget);
+void sas_ata_task_abort(struct sas_task *task);
+
#endif /* _SAS_ATA_H_ */