diff options
| author | Jeff Garzik <[email protected]> | 2005-05-28 11:55:48 +0000 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2005-06-17 17:05:03 +0000 |
| commit | 94d0e7b805961c44e4dc486ffc21075084bb7175 (patch) | |
| tree | 1609752ea7a9adb28583147f0bea33a9f10877d7 /drivers/scsi/scsi_error.c | |
| parent | [SCSI] allow sleeping in ->eh_abort_handler() (diff) | |
| download | kernel-94d0e7b805961c44e4dc486ffc21075084bb7175.tar.gz kernel-94d0e7b805961c44e4dc486ffc21075084bb7175.zip | |
[SCSI] allow sleeping in ->eh_device_reset_handler()
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
| -rw-r--r-- | drivers/scsi/scsi_error.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 3877a78f5e50..87d925055b47 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -857,17 +857,14 @@ static int scsi_eh_abort_cmds(struct list_head *work_q, **/ static int scsi_try_bus_device_reset(struct scsi_cmnd *scmd) { - unsigned long flags; - int rtn = FAILED; + int rtn; if (!scmd->device->host->hostt->eh_device_reset_handler) - return rtn; + return FAILED; scmd->owner = SCSI_OWNER_LOWLEVEL; - spin_lock_irqsave(scmd->device->host->host_lock, flags); rtn = scmd->device->host->hostt->eh_device_reset_handler(scmd); - spin_unlock_irqrestore(scmd->device->host->host_lock, flags); if (rtn == SUCCESS) { scmd->device->was_reset = 1; |
