]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit233fc32c8dbf9c44d887e4f02369f863b523c8dc
tree1bc07f805571acf6c1de5d974fe6c309f4b26678
parenta678c208b37e6cc82e3eea62068fbf31f4bb0368
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: f54ddebebd98 ("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