scsi: lpfc: Fix failure to transmit ABTS on FC link
authorJames Smart <jsmart2021@gmail.com>
Fri, 28 May 2021 21:22:40 +0000 (14:22 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Jun 2021 03:00:42 +0000 (23:00 -0400)
commit696770e72f2b42b92ea0a4a98087fb2ba376417a
tree1bc07f805571acf6c1de5d974fe6c309f4b26678
parent515da6f4295c2c42b8c54572cce3d2dd1167c41e
scsi: lpfc: Fix failure to transmit ABTS on FC link

The abort_cmd_ia flag in an abort wqe describes whether an ABTS basic link
service should be transmitted on the FC link or not.  Code added in
lpfc_sli4_issue_abort_iotag() set the abort_cmd_ia flag incorrectly,
surpressing ABTS transmission.

A previous LPFC change to build an abort wqe inverted prior logic that
determined whether an ABTS was to be issued on the FC link.

Revert this logic to its proper state.

Link: https://lore.kernel.org/r/20210528212240.11387-1-jsmart2021@gmail.com
Fixes: db7531d2b377 ("scsi: lpfc: Convert abort handling to SLI-3 and SLI-4 handlers")
Cc: <stable@vger.kernel.org> # v5.11+
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c