aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 07:58:07 -0400
committerTejun Heo <htejun@gmail.com>2006-05-15 07:58:07 -0400
commit7b70fc039824bc7303e4007a5f758f832de56611 (patch)
treed973a40055dec97fedc5ae87852667ed2d30ea71 /include/linux/libata.h
parentf686bcb8078ac7505ec88818886c2c72639f4fc5 (diff)
[PATCH] libata-eh-fw: implement ata_port_schedule_eh() and ata_port_abort()
ata_port_schedule_eh() directly schedules EH for @ap without associated qc. Once EH scheduled, no further qc is allowed and EH kicks in as soon as all currently active qc's are drained. ata_port_abort() schedules all currently active commands for EH by qc_completing them with ATA_QCFLAG_FAILED set. If ata_port_abort() doesn't find any qc to abort, it directly schedule EH using ata_port_schedule_eh(). These two functions provide ways to invoke EH for conditions which aren't directly related to any specfic qc. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 6023f324e68e..086e14690954 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -662,6 +662,10 @@ extern unsigned long ata_pci_default_filter(const struct ata_port *, struct ata_
662 * EH 662 * EH
663 */ 663 */
664extern void ata_eng_timeout(struct ata_port *ap); 664extern void ata_eng_timeout(struct ata_port *ap);
665
666extern void ata_port_schedule_eh(struct ata_port *ap);
667extern int ata_port_abort(struct ata_port *ap);
668
665extern void ata_eh_qc_complete(struct ata_queued_cmd *qc); 669extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
666extern void ata_eh_qc_retry(struct ata_queued_cmd *qc); 670extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
667 671