]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] advansys: Enable interrupts earlier in queuecommand
authorMatthew Wilcox <matthew@wil.cx>
Sun, 9 Sep 2007 14:56:35 +0000 (08:56 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:47:59 +0000 (14:47 -0400)
commit35e6bc88670f80b35ead6dc090d662d365ca53fa
tree933be186e56c83dced0c04e6f30eb2ad0e3999fb
parent770c05e69229af97f1fe5ceecd517732b76d6f79
[SCSI] advansys: Enable interrupts earlier in queuecommand

Move as much as possible outside the critical section in queuecommand, eg:
 - Set the scsi_done field before acquiring the lock
 - Call asc_scsi_done after dropping the lock

Also remove a comment suggesting we should enable interrupts (now we do)
and do some minor reformatting for readability.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/advansys.c