@@ -1320,8 +1320,8 @@ static int scsi_eh_test_devices(struct l
* no sense to try and abort the command, since as far as the shost
* adapter is concerned, it isn't running.
*/
-static int scsi_eh_abort_cmds(struct list_head *work_q,
- struct list_head *done_q)
+int scsi_eh_abort_cmds(struct list_head *work_q,
+ struct list_head *done_q)
{
struct scsi_cmnd *scmd, *next;
LIST_HEAD(check_list);
@@ -1361,6 +1361,7 @@ static int scsi_eh_abort_cmds(struct lis
return scsi_eh_test_devices(&check_list, work_q, done_q, 0);
}
+EXPORT_SYMBOL_GPL(scsi_eh_abort_cmds);
/**
* scsi_eh_try_stu - Send START_UNIT to device.
@@ -17,6 +17,11 @@ extern int scsi_block_when_processing_er
extern bool scsi_command_normalize_sense(const struct scsi_cmnd *cmd,
struct scsi_sense_hdr *sshdr);
extern int scsi_check_sense(struct scsi_cmnd *);
+extern int scsi_eh_abort_cmds(struct list_head *work_q,
+ struct list_head *done_q);
+extern void scsi_eh_ready_devs(struct Scsi_Host *shost,
+ struct list_head *work_q,
+ struct list_head *done_q);
static inline bool scsi_sense_is_deferred(const struct scsi_sense_hdr *sshdr)
{
Export the following EH commands so that ipr can be converted to use libata's new EH. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> --- drivers/scsi/scsi_error.c | 5 +++-- include/scsi/scsi_eh.h | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-)