|
@@ -66,7 +66,7 @@ void scsi_eh_wakeup(struct Scsi_Host *shost)
|
|
{
|
|
{
|
|
lockdep_assert_held(shost->host_lock);
|
|
lockdep_assert_held(shost->host_lock);
|
|
|
|
|
|
- if (atomic_read(&shost->host_busy) == shost->host_failed) {
|
|
|
|
|
|
+ if (scsi_host_busy(shost) == shost->host_failed) {
|
|
trace_scsi_eh_wakeup(shost);
|
|
trace_scsi_eh_wakeup(shost);
|
|
wake_up_process(shost->ehandler);
|
|
wake_up_process(shost->ehandler);
|
|
SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost,
|
|
SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost,
|
|
@@ -2155,7 +2155,7 @@ int scsi_error_handler(void *data)
|
|
break;
|
|
break;
|
|
|
|
|
|
if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) ||
|
|
if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) ||
|
|
- shost->host_failed != atomic_read(&shost->host_busy)) {
|
|
|
|
|
|
+ shost->host_failed != scsi_host_busy(shost)) {
|
|
SCSI_LOG_ERROR_RECOVERY(1,
|
|
SCSI_LOG_ERROR_RECOVERY(1,
|
|
shost_printk(KERN_INFO, shost,
|
|
shost_printk(KERN_INFO, shost,
|
|
"scsi_eh_%d: sleeping\n",
|
|
"scsi_eh_%d: sleeping\n",
|
|
@@ -2170,7 +2170,7 @@ int scsi_error_handler(void *data)
|
|
"scsi_eh_%d: waking up %d/%d/%d\n",
|
|
"scsi_eh_%d: waking up %d/%d/%d\n",
|
|
shost->host_no, shost->host_eh_scheduled,
|
|
shost->host_no, shost->host_eh_scheduled,
|
|
shost->host_failed,
|
|
shost->host_failed,
|
|
- atomic_read(&shost->host_busy)));
|
|
|
|
|
|
+ scsi_host_busy(shost)));
|
|
|
|
|
|
/*
|
|
/*
|
|
* We have a host that is failing for some reason. Figure out
|
|
* We have a host that is failing for some reason. Figure out
|