[SCSI] mptfc: fix fibre channel infinite request/response loop
authorMichael Reed <mdr@sgi.com>
Wed, 24 May 2006 20:07:40 +0000 (15:07 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 10 Jun 2006 21:00:03 +0000 (16:00 -0500)
commit419835e285c3e39cd62c8c8426da0aebea9cd89f
treee550176245f09598ccf7ffff915524ff07d75c88
parentca2f938efe71ca48cbc689db4df8d4f04b5d8f07
[SCSI] mptfc: fix fibre channel infinite request/response loop

While doing board reset testing I was able to put the system in
an infinite request/response loop between the scsi layer and
mptscsih_qcmd() by aborting the reset.  This patch installs
a "SETUP RESET" handler which calls fc_remote_port_delete()
for all registered rports.  This blocks the target which
prevents the loop.  Additionally, should the reset fail to
complete, the transport will now terminate i/o to the target.

Signed-off-by: Michael Reed <mdr@sgi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptfc.c