X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fesp.c;fp=drivers%2Fscsi%2Fesp.c;h=87a8c3d2072c4011009d53b7c2dd43e72ba6b4f4;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=f6900538be9084b2c368391172d337ba4e75d6f6;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c index f6900538b..87a8c3d20 100644 --- a/drivers/scsi/esp.c +++ b/drivers/scsi/esp.c @@ -2068,14 +2068,12 @@ static int esp_reset(struct scsi_cmnd *SCptr) { struct esp *esp = (struct esp *) SCptr->device->host->hostdata; + spin_lock_irq(esp->ehost->host_lock); (void) esp_do_resetbus(esp); - spin_unlock_irq(esp->ehost->host_lock); wait_event(esp->reset_queue, (esp->resetting_bus == 0)); - spin_lock_irq(esp->ehost->host_lock); - return SUCCESS; }