aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r--drivers/scsi/ahci.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index 0f6e4dd22901..5a6b23009897 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -672,19 +672,13 @@ static void ahci_eng_timeout(struct ata_port *ap)
672 ap->id); 672 ap->id);
673 } else { 673 } else {
674 ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT)); 674 ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT));
675
676 /* hack alert! We cannot use the supplied completion
677 * function from inside the ->eh_strategy_handler() thread.
678 * libata is the only user of ->eh_strategy_handler() in
679 * any kernel, so the default scsi_done() assumes it is
680 * not being called from the SCSI EH.
681 */
682 qc->scsidone = scsi_finish_command;
683 qc->err_mask |= AC_ERR_TIMEOUT; 675 qc->err_mask |= AC_ERR_TIMEOUT;
684 ata_qc_complete(qc);
685 } 676 }
686 677
687 spin_unlock_irqrestore(&host_set->lock, flags); 678 spin_unlock_irqrestore(&host_set->lock, flags);
679
680 if (qc)
681 ata_eh_qc_complete(qc);
688} 682}
689 683
690static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc) 684static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)