Blob Blame History Raw
From: James Smart <jsmart2021@gmail.com>
Date: Tue, 21 May 2019 17:49:10 -0700
Subject: [PATCH] scsi: lpfc: Fix kernel warnings related to smp_processor_id()
References: bsc#1136217,jsc#SLE-4722
Git-commit: 01d53c04637f96bbb753e9c7f61392c40671b564
Patch-mainline: v5.3-rc1

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>
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 drivers/scsi/lpfc/lpfc_nvmet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c
index 18eae8725161..02f9cf90c4c0 100644
--- a/drivers/scsi/lpfc/lpfc_nvmet.c
+++ b/drivers/scsi/lpfc/lpfc_nvmet.c
@@ -1641,7 +1641,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)
-- 
2.16.4