[SCSI] bfa: fix for FC Direct Attach LUN discovery failure
authorVijay Mohan Guvva <vmohan@Brocade.com>
Mon, 13 May 2013 09:56:48 +0000 (03:56 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 4 Jun 2013 18:16:27 +0000 (11:16 -0700)
Resending the patch as it didn't make the linux-scsi list.

This patch fixes fcs rport state machine to address ocassional Brocade
FC Direct Attach LUN discovery failure due to not sending PLOGI accept
to the target.

Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfa_fcs_rport.c

index 58ac643..610ca95 100644 (file)
@@ -189,8 +189,8 @@ bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        case RPSM_EVENT_PLOGI_RCVD:
-               bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online);
-               bfa_fcs_rport_fcs_online_action(rport);
+               bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending);
+               bfa_fcs_rport_send_plogiacc(rport, NULL);
                break;
 
        case RPSM_EVENT_PLOGI_COMP: