]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt fusion: lock down ScsiLookup
authorEric Moore <eric.moore@lsi.com>
Sat, 29 Sep 2007 16:16:53 +0000 (10:16 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:52:15 +0000 (14:52 -0400)
commit487c3929abb41cf6fc0b22540f0b8395e39ba626
tree4d3db0df57f86b34425dcfe929c940d8d06fe614
parentba1253a33500050764cb7a3028ad39575c1bb6d2
[SCSI] mpt fusion: lock down ScsiLookup

ScsiLookup is an array of pending scmd pointers that the scsi lld
maintains. This array is touched from queuecommand, eh threads, and
interrupt context. This array should put under locks, hence this patch
to synchronize its access.  I've added some nice little function
wrappers for this, and moved the ScsiLookup array over to MPT_ADAPTER
struct.

Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptfc.c
drivers/message/fusion/mptsas.c
drivers/message/fusion/mptscsih.c
drivers/message/fusion/mptspi.c