Skip to content

Commit 696770e

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
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/[email protected] Fixes: db7531d ("scsi: lpfc: Convert abort handling to SLI-3 and SLI-4 handlers") Cc: <[email protected]> # v5.11+ Signed-off-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 515da6f commit 696770e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/scsi/lpfc/lpfc_sli.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20589,10 +20589,8 @@ lpfc_sli4_issue_abort_iotag(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2058920589
abtswqe = &abtsiocb->wqe;
2059020590
memset(abtswqe, 0, sizeof(*abtswqe));
2059120591

20592-
if (lpfc_is_link_up(phba))
20592+
if (!lpfc_is_link_up(phba))
2059320593
bf_set(abort_cmd_ia, &abtswqe->abort_cmd, 1);
20594-
else
20595-
bf_set(abort_cmd_ia, &abtswqe->abort_cmd, 0);
2059620594
bf_set(abort_cmd_criteria, &abtswqe->abort_cmd, T_XRI_TAG);
2059720595
abtswqe->abort_cmd.rsrvd5 = 0;
2059820596
abtswqe->abort_cmd.wqe_com.abort_tag = xritag;

0 commit comments

Comments
 (0)