]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:39 +0000 (19:23 +0200)
commit6a0ae1f06e0b36a8fc54f0fd7fa18e28b3ec0e89
tree2b6711d9577aafcc9e57f62e29e6a09c6cdc7c86
parenta48b431838ffcc4cfdd3ec1e61fc23bf0448ff0b
scsi: lpfc: Fix failure to transmit ABTS on FC link

BugLink: https://bugs.launchpad.net/bugs/1933691
commit 696770e72f2b42b92ea0a4a98087fb2ba376417a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/scsi/lpfc/lpfc_sli.c