Merge branch 'for-jeff' of git://htj.dyndns.org/libata-tj into tejun-merge
[safe/jmp/linux-2.6] / drivers / scsi / scsi_lib.c
index 764a8b3..18e3477 100644 (file)
@@ -566,7 +566,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);