]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_lib.c
[PATCH] irq-flags: isdn: Use the new IRQF_ constants
[linux-2.6] / drivers / scsi / scsi_lib.c
index 3302d8068c41ac68a05edab0170b65cebfaa5d2a..3d04a9f386acc51744aad2c098b7ee3b9abeb518 100644 (file)
@@ -500,7 +500,7 @@ void scsi_device_unbusy(struct scsi_device *sdev)
        spin_lock_irqsave(shost->host_lock, flags);
        shost->host_busy--;
        if (unlikely(scsi_host_in_recovery(shost) &&
-                    shost->host_failed))
+                    (shost->host_failed || shost->host_eh_scheduled)))
                scsi_eh_wakeup(shost);
        spin_unlock(shost->host_lock);
        spin_lock(sdev->request_queue->queue_lock);