diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index b8212c563fed..278e0c99b2ae 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -400,7 +400,7 @@ void scsi_device_unbusy(struct scsi_device *sdev) | |||
400 | 400 | ||
401 | spin_lock_irqsave(shost->host_lock, flags); | 401 | spin_lock_irqsave(shost->host_lock, flags); |
402 | shost->host_busy--; | 402 | shost->host_busy--; |
403 | if (unlikely(test_bit(SHOST_RECOVERY, &shost->shost_state) && | 403 | if (unlikely((shost->shost_state == SHOST_RECOVERY) && |
404 | shost->host_failed)) | 404 | shost->host_failed)) |
405 | scsi_eh_wakeup(shost); | 405 | scsi_eh_wakeup(shost); |
406 | spin_unlock(shost->host_lock); | 406 | spin_unlock(shost->host_lock); |
@@ -1281,7 +1281,7 @@ static inline int scsi_host_queue_ready(struct request_queue *q, | |||
1281 | struct Scsi_Host *shost, | 1281 | struct Scsi_Host *shost, |
1282 | struct scsi_device *sdev) | 1282 | struct scsi_device *sdev) |
1283 | { | 1283 | { |
1284 | if (test_bit(SHOST_RECOVERY, &shost->shost_state)) | 1284 | if (shost->shost_state == SHOST_RECOVERY) |
1285 | return 0; | 1285 | return 0; |
1286 | if (shost->host_busy == 0 && shost->host_blocked) { | 1286 | if (shost->host_busy == 0 && shost->host_blocked) { |
1287 | /* | 1287 | /* |