Nilesh Javali
1a541999f3
scsi: qla2xxx: Use raw_smp_processor_id() instead of smp_processor_id()
[ Upstream commit 59f10a05b5 ]
The following call trace was observed:
localhost kernel: nvme nvme0: NVME-FC{0}: controller connect complete
localhost kernel: BUG: using smp_processor_id() in preemptible [00000000] code: kworker/u129:4/75092
localhost kernel: nvme nvme0: NVME-FC{0}: new ctrl: NQN "nqn.1992-08.com.netapp:sn.b42d198afb4d11ecad6d00a098d6abfa:subsystem.PR_Channel2022_RH84_subsystem_291"
localhost kernel: caller is qla_nvme_post_cmd+0x216/0x1380 [qla2xxx]
localhost kernel: CPU: 6 PID: 75092 Comm: kworker/u129:4 Kdump: loaded Tainted: G B W OE --------- --- 5.14.0-70.22.1.el9_0.x86_64+debug #1
localhost kernel: Hardware name: HPE ProLiant XL420 Gen10/ProLiant XL420 Gen10, BIOS U39 01/13/2022
localhost kernel: Workqueue: nvme-wq nvme_async_event_work [nvme_core]
localhost kernel: Call Trace:
localhost kernel: dump_stack_lvl+0x57/0x7d
localhost kernel: check_preemption_disabled+0xc8/0xd0
localhost kernel: qla_nvme_post_cmd+0x216/0x1380 [qla2xxx]
Use raw_smp_processor_id() instead of smp_processor_id().
Also use queue_work() across the driver instead of queue_work_on() thus
avoiding usage of smp_processor_id() when CONFIG_DEBUG_PREEMPT is enabled.
Cc: stable@vger.kernel.org
Suggested-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20230831112146.32595-2-njavali@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-06 13:18:11 +02:00
..
2023-09-23 11:09:55 +02:00
2023-09-19 12:22:47 +02:00
2023-08-16 18:21:59 +02:00
2023-10-06 13:18:11 +02:00
2023-09-19 12:22:45 +02:00
2023-09-19 12:23:04 +02:00
2023-09-19 12:22:34 +02:00
2023-09-23 11:09:57 +02:00
2023-09-23 11:09:56 +02:00
2023-09-19 12:22:56 +02:00
2023-07-23 13:46:45 +02:00
2023-04-26 13:51:55 +02:00
2023-09-19 12:22:52 +02:00
2023-09-19 12:22:42 +02:00
2023-09-19 12:22:52 +02:00
2023-07-23 13:47:17 +02:00
2023-09-19 12:22:50 +02:00
2023-09-19 12:23:01 +02:00
2023-08-30 16:18:21 +02:00
2023-09-19 12:22:40 +02:00
2023-07-23 13:47:31 +02:00
2023-08-26 14:23:24 +02:00
2023-09-19 12:22:52 +02:00
2023-05-11 23:00:31 +09:00
2023-09-19 12:22:46 +02:00
2023-10-06 13:18:09 +02:00
2023-09-23 11:10:03 +02:00
2023-09-19 12:22:48 +02:00
2023-06-28 10:29:42 +02:00
2023-09-19 12:22:35 +02:00
2023-09-19 12:22:45 +02:00
2023-10-06 13:18:09 +02:00
2023-09-19 12:22:51 +02:00
2023-08-26 14:23:27 +02:00
2023-09-19 12:22:48 +02:00
2023-10-06 13:18:10 +02:00
2023-10-06 13:18:09 +02:00
2023-09-19 12:22:46 +02:00
2023-08-03 10:22:45 +02:00
2023-08-16 18:22:01 +02:00
2023-09-19 12:22:49 +02:00
2023-05-11 23:00:34 +09:00
2023-07-23 13:47:28 +02:00
2023-05-24 17:36:47 +01:00
2023-09-23 11:10:01 +02:00
2023-09-23 11:09:59 +02:00
2023-07-23 13:47:03 +02:00
2023-07-23 13:46:52 +02:00
2023-05-24 17:36:45 +01:00
2023-07-23 13:47:51 +02:00
2023-08-16 18:21:59 +02:00
2023-09-23 11:09:56 +02:00
2023-09-23 11:10:00 +02:00
2023-10-06 13:18:08 +02:00
2023-06-28 10:29:51 +02:00
2023-09-19 12:22:51 +02:00
2023-07-05 18:25:05 +01:00
2023-08-16 18:22:03 +02:00
2023-07-23 13:47:25 +02:00
2023-09-19 12:22:40 +02:00
2023-09-19 12:22:31 +02:00
2023-09-19 12:22:55 +02:00
2023-09-23 11:09:58 +02:00
2023-08-26 14:23:24 +02:00
2023-09-23 11:09:55 +02:00
2023-09-19 12:22:48 +02:00
2023-09-19 12:22:55 +02:00
2023-10-06 13:18:06 +02:00
2023-06-21 15:59:13 +02:00
2023-07-23 13:46:46 +02:00
2023-04-05 11:24:55 +02:00
2023-09-19 12:22:58 +02:00
2023-07-23 13:46:50 +02:00
2023-05-24 17:36:44 +01:00
2023-09-19 12:22:48 +02:00
2023-09-06 21:28:37 +01:00
2023-09-19 12:22:59 +02:00
2023-10-06 13:18:11 +02:00
2023-09-19 12:22:56 +02:00
2023-08-11 15:14:00 +02:00
2023-09-19 12:22:32 +02:00
2023-05-11 23:00:34 +09:00
2023-09-19 12:22:51 +02:00
2023-09-23 11:09:59 +02:00
2023-06-14 11:13:06 +02:00
2023-07-23 13:46:46 +02:00
2023-08-26 14:23:24 +02:00
2023-09-23 11:09:59 +02:00
2023-09-23 11:09:59 +02:00
2023-08-26 14:23:30 +02:00
2023-09-19 12:22:41 +02:00
2023-06-28 10:29:53 +02:00
2023-09-19 12:22:57 +02:00
2023-09-19 12:22:49 +02:00
2023-07-23 13:47:20 +02:00
2023-09-19 12:22:57 +02:00
2023-05-30 13:55:32 +01:00