@@ -768,7 +768,7 @@ void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap)
spin_unlock_irqrestore(ap->lock, flags);
ata_eh_release(ap);
- scsi_eh_flush_done_q(&ap->eh_done_q);
+ scsi_eh_flush_done_q(host, &ap->eh_done_q);
/* clean up */
spin_lock_irqsave(ap->lock, flags);
@@ -730,7 +730,7 @@ void sas_scsi_recover_host(struct Scsi_Host *shost)
/* now link into libata eh --- if we have any ata devices */
sas_ata_strategy_handler(shost);
- scsi_eh_flush_done_q(&ha->eh_done_q);
+ scsi_eh_flush_done_q(shost, &ha->eh_done_q);
/* check if any new eh work was scheduled during the last run */
spin_lock_irq(&ha->lock);
@@ -2188,9 +2188,10 @@ EXPORT_SYMBOL_GPL(scsi_eh_ready_devs);
/**
* scsi_eh_flush_done_q - finish processed commands or retry them.
+ * @shost: SCSI host pointer.
* @done_q: list_head of processed commands.
*/
-void scsi_eh_flush_done_q(struct list_head *done_q)
+void scsi_eh_flush_done_q(struct Scsi_Host *shost, struct list_head *done_q)
{
struct scsi_cmnd *scmd, *next;
@@ -2265,7 +2266,7 @@ static void scsi_unjam_host(struct Scsi_Host *shost)
if (shost->eh_deadline != -1)
shost->last_reset = 0;
spin_unlock_irqrestore(shost->host_lock, flags);
- scsi_eh_flush_done_q(&eh_done_q);
+ scsi_eh_flush_done_q(shost, &eh_done_q);
}
/**
@@ -11,7 +11,8 @@ struct Scsi_Host;
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_eh_flush_done_q(struct Scsi_Host *shost,
+ 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 *);