mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SCSI] Remove unnecessary locking around completion function calls
The SCSI ->done() hook should not be called from inside a spinlock. Drivers that do this are mostly cut-n-paste from 2.2.x-era. Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
12021fff2b
commit
e3df715501
3 changed files with 0 additions and 12 deletions
|
|
@ -954,9 +954,7 @@ static int ultrastor_abort(Scsi_Cmnd *SCpnt)
|
|||
SCpnt->result = DID_ABORT << 16;
|
||||
|
||||
/* Take the host lock to guard against scsi layer re-entry */
|
||||
spin_lock_irqsave(host->host_lock, flags);
|
||||
done(SCpnt);
|
||||
spin_unlock_irqrestore(host->host_lock, flags);
|
||||
|
||||
/* Need to set a timeout here in case command never completes. */
|
||||
return SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue