On Sat, 7 Apr 2018 11:30:13 -0700 James Smart <jsmart2021@xxxxxxxxx> wrote: > Nodelist entry for SCSI array ends up in UNMAPPED state. This is > due to illegal discovery State machine transition because of two > PRLIs and the first one failing with LS_RJT. Also, the error path > was designed assuming the PRLIs complete in the order they were > sent, FCP first, then NVME. In a failing case, the array thinks > about the first PRLI (FCP), but issues LS_RJT for the 2nd PRLI > immediately. > > Fix PRLI completion error path for the ordering expectation. > Ensure the discovery state machine update is not set until all > outstanding PRLIs are complete. > > Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx> > Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx> > --- > drivers/scsi/lpfc/lpfc_nportdisc.c | 29 ++++++----------------------- > 1 file changed, 6 insertions(+), 23 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes