Skip to content

Commit 24e1f05

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
scsi: lpfc: Resolve some cleanup issues following abort path refactoring
Refactoring and consolidation of abort paths: - lpfc_sli4_abort_fcp_cmpl() and lpfc_sli_abort_fcp_cmpl() are combined into a single generic lpfc_sli_abort_fcp_cmpl() routine. Thus, remove extraneous lpfc_sli4_abort_fcp_cmpl() prototype declaration. - lpfc_nvme_abort_fcreq_cmpl() abort completion routine is called with a mismatched argument type. This may result in misleading log message content. Update to the correct argument type of lpfc_iocbq instead of lpfc_wcqe_complete. The lpfc_wcqe_complete should be derived from the lpfc_iocbq structure. Link: https://lore.kernel.org/r/[email protected] Fixes: 31a59f7 ("scsi: lpfc: SLI path split: Refactor Abort paths") Cc: <[email protected]> # v5.18 Co-developed-by: Justin Tee <[email protected]> Signed-off-by: Justin Tee <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 44ba978 commit 24e1f05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/scsi/lpfc/lpfc_crtn.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ int lpfc_sli_issue_iocb_wait(struct lpfc_hba *, uint32_t,
420420
uint32_t);
421421
void lpfc_sli_abort_fcp_cmpl(struct lpfc_hba *, struct lpfc_iocbq *,
422422
struct lpfc_iocbq *);
423-
void lpfc_sli4_abort_fcp_cmpl(struct lpfc_hba *h, struct lpfc_iocbq *i,
424-
struct lpfc_wcqe_complete *w);
425423

426424
void lpfc_sli_free_hbq(struct lpfc_hba *, struct hbq_dmabuf *);
427425

@@ -630,7 +628,7 @@ void lpfc_nvmet_invalidate_host(struct lpfc_hba *phba,
630628
struct lpfc_nodelist *ndlp);
631629
void lpfc_nvme_abort_fcreq_cmpl(struct lpfc_hba *phba,
632630
struct lpfc_iocbq *cmdiocb,
633-
struct lpfc_wcqe_complete *abts_cmpl);
631+
struct lpfc_iocbq *rspiocb);
634632
void lpfc_create_multixri_pools(struct lpfc_hba *phba);
635633
void lpfc_create_destroy_pools(struct lpfc_hba *phba);
636634
void lpfc_move_xri_pvt_to_pbl(struct lpfc_hba *phba, u32 hwqid);

drivers/scsi/lpfc/lpfc_nvme.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ lpfc_nvme_fcp_io_submit(struct nvme_fc_local_port *pnvme_lport,
17871787
* lpfc_nvme_abort_fcreq_cmpl - Complete an NVME FCP abort request.
17881788
* @phba: Pointer to HBA context object
17891789
* @cmdiocb: Pointer to command iocb object.
1790-
* @abts_cmpl: Pointer to wcqe complete object.
1790+
* @rspiocb: Pointer to response iocb object.
17911791
*
17921792
* This is the callback function for any NVME FCP IO that was aborted.
17931793
*
@@ -1796,8 +1796,10 @@ lpfc_nvme_fcp_io_submit(struct nvme_fc_local_port *pnvme_lport,
17961796
**/
17971797
void
17981798
lpfc_nvme_abort_fcreq_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1799-
struct lpfc_wcqe_complete *abts_cmpl)
1799+
struct lpfc_iocbq *rspiocb)
18001800
{
1801+
struct lpfc_wcqe_complete *abts_cmpl = &rspiocb->wcqe_cmpl;
1802+
18011803
lpfc_printf_log(phba, KERN_INFO, LOG_NVME,
18021804
"6145 ABORT_XRI_CN completing on rpi x%x "
18031805
"original iotag x%x, abort cmd iotag x%x "

0 commit comments

Comments
 (0)