[SCSI] bfa: vport state machine fix
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 02:47:08 +0000 (19:47 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:05 +0000 (12:04 -0500)
commit1769f990fc182695bc215ce4369688064addcd1e
treef09635abe9e660a6c30eb9b7f50707122e5cb270
parentd9883548a0b0afec4786e6c5cd8d03d43a30b779
[SCSI] bfa: vport state machine fix

Vport state machine does not cleanup associated lport in some states: while
waiting for fdisc response or fdisc failure state. The fixe is to cleanup lport
on vport delete in all states.  In fdisc state, discard fdisc response and
delete lport and wait for lport deletecompletion. in error state, delete lport
and wait for delete completion.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/vport.c