[SCSI] fusion: hold off error recovery while alternate ioc is initializing
authorMichael Reed <mdr@sgi.com>
Wed, 10 Feb 2010 20:32:00 +0000 (14:32 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 19:38:22 +0000 (13:38 -0600)
commit03cb3829e0e5650518ce37e2b4420a35e034dc9e
tree17ae96241e0eb7e62460150c83a1c374c9e79293
parent4b5aa7cff0e2bd1a9c81b59553ba8ecfa3aa7e1b
[SCSI] fusion: hold off error recovery while alternate ioc is initializing

After discussing this patch with LSI, I resubmitting with a recommended
40 second wait for the alternate ioc's initialization to complete.
--
Fusion FC chips are two function with some shared resources.  During
initialization of one function its driver inhibits the ability of the
other function's driver to allocate message frames by clearing its
"active" flag.  Should mid-layer error recovery be initiated for a
scsi command during this initialization (which can take up to 40 seconds)
error recovery will escalate to the level of host reset.  This host
reset might fail (as the other function is resetting) resulting in
all connected targets being taken offline.

This patch holds off mid-layer error recovery for up to 40 seconds
to permit initialization of the other function to complete.

Signed-off-by: Michael Reed <mdr@sgi.com>
Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/message/fusion/mptfc.c