]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libfc: retry PRLI if we cannot analyse the payload
authorHannes Reinecke <hare@suse.com>
Sun, 7 Oct 2018 08:35:37 +0000 (10:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 03:53:37 +0000 (23:53 -0400)
commitd9d5fbc7c169fa0121d09da021c1f40bbce3ac9d
tree583117d8a22a255de77fd7e15b579bdf9a12015f
parentb2834ffa11cebdc399689dc054045378977df2f2
scsi: libfc: retry PRLI if we cannot analyse the payload

When we fail to analyse the payload of a PRLI response we should reset
the state machine to retry the PRLI; eventually we will be getting a
proper frame.  Not doing so will result in a stuck state machine and the
port never to be presented to the systsm.

Suggested-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Arun Easi <arun.easi@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_rport.c