diff options
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 6ef89c99dd12..9647dabc6612 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -453,15 +453,10 @@ static int aac_eh_reset(struct scsi_cmnd* cmd) | |||
453 | 453 | ||
454 | printk(KERN_ERR "%s: Host adapter reset request. SCSI hang ?\n", | 454 | printk(KERN_ERR "%s: Host adapter reset request. SCSI hang ?\n", |
455 | AAC_DRIVERNAME); | 455 | AAC_DRIVERNAME); |
456 | |||
457 | |||
458 | spin_lock_irq(host->host_lock); | ||
459 | |||
460 | aac = (struct aac_dev *)host->hostdata; | 456 | aac = (struct aac_dev *)host->hostdata; |
461 | if (aac_adapter_check_health(aac)) { | 457 | if (aac_adapter_check_health(aac)) { |
462 | printk(KERN_ERR "%s: Host adapter appears dead\n", | 458 | printk(KERN_ERR "%s: Host adapter appears dead\n", |
463 | AAC_DRIVERNAME); | 459 | AAC_DRIVERNAME); |
464 | spin_unlock_irq(host->host_lock); | ||
465 | return -ENODEV; | 460 | return -ENODEV; |
466 | } | 461 | } |
467 | /* | 462 | /* |
@@ -487,13 +482,10 @@ static int aac_eh_reset(struct scsi_cmnd* cmd) | |||
487 | /* | 482 | /* |
488 | * We can exit If all the commands are complete | 483 | * We can exit If all the commands are complete |
489 | */ | 484 | */ |
490 | spin_unlock_irq(host->host_lock); | ||
491 | if (active == 0) | 485 | if (active == 0) |
492 | return SUCCESS; | 486 | return SUCCESS; |
493 | ssleep(1); | 487 | ssleep(1); |
494 | spin_lock_irq(host->host_lock); | ||
495 | } | 488 | } |
496 | spin_unlock_irq(host->host_lock); | ||
497 | printk(KERN_ERR "%s: SCSI bus appears hung\n", AAC_DRIVERNAME); | 489 | printk(KERN_ERR "%s: SCSI bus appears hung\n", AAC_DRIVERNAME); |
498 | return -ETIMEDOUT; | 490 | return -ETIMEDOUT; |
499 | } | 491 | } |