diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:58:07 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:58:07 -0400 |
commit | 7b70fc039824bc7303e4007a5f758f832de56611 (patch) | |
tree | d973a40055dec97fedc5ae87852667ed2d30ea71 /drivers/scsi/libata.h | |
parent | f686bcb8078ac7505ec88818886c2c72639f4fc5 (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 'drivers/scsi/libata.h')
-rw-r--r-- | drivers/scsi/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index 52622b7f8a9e..b76ad7d7062a 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -98,6 +98,7 @@ extern void ata_scsi_set_sense(struct scsi_cmnd *cmd, | |||
98 | extern void ata_scsi_rbuf_fill(struct ata_scsi_args *args, | 98 | extern void ata_scsi_rbuf_fill(struct ata_scsi_args *args, |
99 | unsigned int (*actor) (struct ata_scsi_args *args, | 99 | unsigned int (*actor) (struct ata_scsi_args *args, |
100 | u8 *rbuf, unsigned int buflen)); | 100 | u8 *rbuf, unsigned int buflen)); |
101 | extern void ata_schedule_scsi_eh(struct Scsi_Host *shost); | ||
101 | 102 | ||
102 | /* libata-eh.c */ | 103 | /* libata-eh.c */ |
103 | extern enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); | 104 | extern enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); |