scsi: lpfc: Update fc_prli_sent outstanding only after guaranteed IOCB submit
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Apr 2022 22:19:52 +0000 (15:19 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Apr 2022 02:48:45 +0000 (22:48 -0400)
commit31e887864eb2c0cce3d0c448a7b1ef9792e850b7
tree0dedee18027551f277dbc887bbd78ae176454986
parent672d1cb40551ea9c95efad43ab6d45e4ab4e015f
scsi: lpfc: Update fc_prli_sent outstanding only after guaranteed IOCB submit

If lpfc_sli_issue_iocb() fails, then the fc_prli_sent is never decremented.

Move the fc_prli_sent++ to after a guaranteed IOCB submit.

Link: https://lore.kernel.org/r/20220412222008.126521-11-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c