diff options
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index f036ae4b8afb..2007b4b6e1b4 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2745,27 +2745,3 @@ void ata_scsi_scan_host(struct ata_port *ap) | |||
2745 | scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0); | 2745 | scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0); |
2746 | } | 2746 | } |
2747 | } | 2747 | } |
2748 | |||
2749 | /** | ||
2750 | * ata_schedule_scsi_eh - schedule EH for SCSI host | ||
2751 | * @shost: SCSI host to invoke error handling on. | ||
2752 | * | ||
2753 | * Schedule SCSI EH without scmd. This is a hack. | ||
2754 | * | ||
2755 | * LOCKING: | ||
2756 | * spin_lock_irqsave(host_set lock) | ||
2757 | **/ | ||
2758 | void ata_schedule_scsi_eh(struct Scsi_Host *shost) | ||
2759 | { | ||
2760 | unsigned long flags; | ||
2761 | |||
2762 | spin_lock_irqsave(shost->host_lock, flags); | ||
2763 | |||
2764 | if (scsi_host_set_state(shost, SHOST_RECOVERY) == 0 || | ||
2765 | scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY) == 0) { | ||
2766 | shost->host_eh_scheduled++; | ||
2767 | scsi_eh_wakeup(shost); | ||
2768 | } | ||
2769 | |||
2770 | spin_unlock_irqrestore(shost->host_lock, flags); | ||
2771 | } | ||