mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[SCSI] allow sleeping in ->eh_bus_reset_handler()
Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
94d0e7b805
commit
68b3aa7c98
32 changed files with 133 additions and 40 deletions
|
|
@ -983,7 +983,10 @@ int fcp_scsi_dev_reset(Scsi_Cmnd *SCpnt)
|
|||
fc->rst_pkt->request->rq_status = RQ_SCSI_BUSY;
|
||||
|
||||
fc->rst_pkt->done = fcp_scsi_reset_done;
|
||||
|
||||
spin_lock_irqsave(SCpnt->device->host->host_lock, flags);
|
||||
fcp_scsi_queue_it(fc, fc->rst_pkt, fcmd, 0);
|
||||
spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags);
|
||||
|
||||
down(&sem);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue