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 7a91ca3d32a6..060010bccabc 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -348,7 +348,7 @@ void scsi_device_unbusy(struct scsi_device *sdev) | |||
348 | 348 | ||
349 | spin_lock_irqsave(shost->host_lock, flags); | 349 | spin_lock_irqsave(shost->host_lock, flags); |
350 | shost->host_busy--; | 350 | shost->host_busy--; |
351 | if (unlikely(test_bit(SHOST_RECOVERY, &shost->shost_state) && | 351 | if (unlikely((shost->shost_state == SHOST_RECOVERY) && |
352 | shost->host_failed)) | 352 | shost->host_failed)) |
353 | scsi_eh_wakeup(shost); | 353 | scsi_eh_wakeup(shost); |
354 | spin_unlock(shost->host_lock); | 354 | spin_unlock(shost->host_lock); |
@@ -1207,7 +1207,7 @@ static inline int scsi_host_queue_ready(struct request_queue *q, | |||
1207 | struct Scsi_Host *shost, | 1207 | struct Scsi_Host *shost, |
1208 | struct scsi_device *sdev) | 1208 | struct scsi_device *sdev) |
1209 | { | 1209 | { |
1210 | if (test_bit(SHOST_RECOVERY, &shost->shost_state)) | 1210 | if (shost->shost_state == SHOST_RECOVERY) |
1211 | return 0; | 1211 | return 0; |
1212 | if (shost->host_busy == 0 && shost->host_blocked) { | 1212 | if (shost->host_busy == 0 && shost->host_blocked) { |
1213 | /* | 1213 | /* |