scsi: lpfc: Fix kernel warnings related to smp_processor_id()
authorJames Smart <jsmart2021@gmail.com>
Wed, 22 May 2019 00:49:10 +0000 (17:49 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:22 +0000 (19:46 -0400)
Kernel warnings may be seen with preempt debugging enabled.

Replace smp_processor_id calls with raw_smp_processor_id or cpu information
stored in hdwq structures.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvmet.c

index 36e8d84..eb93189 100644 (file)
@@ -1642,7 +1642,7 @@ lpfc_sli4_nvmet_xri_aborted(struct lpfc_hba *phba,
 
                lpfc_nvmeio_data(phba,
                                 "NVMET ABTS RCV: xri x%x CPU %02x rjt %d\n",
-                                xri, smp_processor_id(), 0);
+                                xri, raw_smp_processor_id(), 0);
 
                req = &ctxp->ctx.fcp_req;
                if (req)