[SCSI] bfa: fix uf post and rport fcpim state machine
commit4b5e759dca9fb26d921c1267283350004dbf197b
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 02:55:41 +0000 (8 19:55 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:16 +0000 (27 12:04 -0500)
treeef814001eb92a30b79d5a828c0f056ed61e13b26
parentdf2a52a6c8c4995e0bec0b739ddb2f51664837dd
[SCSI] bfa: fix uf post and rport fcpim state machine

BFA UF module did not hold lock when seding uf post buffer message to firmware
causing CPE-Q corruption. Fix is to check present of FCS and if FCS present
hold lock while posting UF buffers.

Handle PRLO with sending acc to it and relogin with rport. Discard fcxp
before any state change.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_uf.c
drivers/scsi/bfa/fcpim.c
drivers/scsi/bfa/fcs_rport.h
drivers/scsi/bfa/include/fcs/bfa_fcs_rport.h
drivers/scsi/bfa/rport.c