[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@ -790,6 +790,9 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt)
|
||||
int base;
|
||||
int scsi_id = -1;
|
||||
int i;
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&sym53c416_lock, flags);
|
||||
|
||||
/* printk("sym53c416_reset\n"); */
|
||||
base = SCpnt->device->host->io_port;
|
||||
@ -801,6 +804,8 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt)
|
||||
outb(NOOP | PIO_MODE, base + COMMAND_REG);
|
||||
outb(RESET_SCSI_BUS, base + COMMAND_REG);
|
||||
sym53c416_init(base, scsi_id);
|
||||
|
||||
spin_unlock_irqrestore(&sym53c416_lock, flags);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user