diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-08-28 12:18:35 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-08-28 12:18:35 -0400 |
commit | 7a93aef7fbac6f4db40b6fec5c0c6b654ae7a93c (patch) | |
tree | 4cd7aae38012dfc1ff6c62be20ef8840e56d8383 /drivers/scsi/scsi_lib.c | |
parent | 392160335c798bbe94ab3aae6ea0c85d32b81bbc (diff) | |
parent | 8224bfa84d510630b40ea460b2bb380c91acb8ae (diff) |
Merge HEAD from ../scsi-misc-2.6-tmp
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 | /* |