summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_eh.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-01-23 05:09:36 +0100
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 04:36:28 +0100
commit041c5fc33cb7ed4fe5322585a611fb6e29a05d3a (patch)
tree7c03ea4fa7c4329a693ce8041110b27251a9923a /include/scsi/scsi_eh.h
parent[PATCH] libata: return AC_ERR_* from issue functions (diff)
downloadlinux-041c5fc33cb7ed4fe5322585a611fb6e29a05d3a.tar.xz
linux-041c5fc33cb7ed4fe5322585a611fb6e29a05d3a.zip
[PATCH] SCSI: export scsi_eh_finish_cmd() and scsi_eh_flush_done_q()
Export two SCSI EH command handling functions. To be used by libata EH. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/scsi/scsi_eh.h')
-rw-r--r--include/scsi/scsi_eh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/scsi_eh.h b/include/scsi/scsi_eh.h
index fabd879c2f2e..d160880b2a87 100644
--- a/include/scsi/scsi_eh.h
+++ b/include/scsi/scsi_eh.h
@@ -35,6 +35,9 @@ static inline int scsi_sense_valid(struct scsi_sense_hdr *sshdr)
}
+extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd,
+ struct list_head *done_q);
+extern void scsi_eh_flush_done_q(struct list_head *done_q);
extern void scsi_report_bus_reset(struct Scsi_Host *, int);
extern void scsi_report_device_reset(struct Scsi_Host *, int, int);
extern int scsi_block_when_processing_errors(struct scsi_device *);