提交 16b8528d 编写于 作者: C Christoph Hellwig 提交者: James Bottomley

megaraid_sas: use raw_smp_processor_id()

We only want to steer the I/O completion towards a queue, but don't
actually access any per-CPU data, so the raw_ version is fine to use
and avoids the warnings when using smp_processor_id().
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reported-by: NAndy Lutomirski <luto@kernel.org>
Tested-by: NAndy Lutomirski <luto@kernel.org>
Acked-by: NSumit Saxena <sumit.saxena@avagotech.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 e557990e
...@@ -1584,11 +1584,11 @@ megasas_build_ldio_fusion(struct megasas_instance *instance, ...@@ -1584,11 +1584,11 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
fp_possible = io_info.fpOkForIo; fp_possible = io_info.fpOkForIo;
} }
/* Use smp_processor_id() for now until cmd->request->cpu is CPU /* Use raw_smp_processor_id() for now until cmd->request->cpu is CPU
id by default, not CPU group id, otherwise all MSI-X queues won't id by default, not CPU group id, otherwise all MSI-X queues won't
be utilized */ be utilized */
cmd->request_desc->SCSIIO.MSIxIndex = instance->msix_vectors ? cmd->request_desc->SCSIIO.MSIxIndex = instance->msix_vectors ?
smp_processor_id() % instance->msix_vectors : 0; raw_smp_processor_id() % instance->msix_vectors : 0;
if (fp_possible) { if (fp_possible) {
megasas_set_pd_lba(io_request, scp->cmd_len, &io_info, scp, megasas_set_pd_lba(io_request, scp->cmd_len, &io_info, scp,
...@@ -1693,7 +1693,10 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance, ...@@ -1693,7 +1693,10 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance,
<< MR_RAID_CTX_RAID_FLAGS_IO_SUB_TYPE_SHIFT; << MR_RAID_CTX_RAID_FLAGS_IO_SUB_TYPE_SHIFT;
cmd->request_desc->SCSIIO.DevHandle = io_request->DevHandle; cmd->request_desc->SCSIIO.DevHandle = io_request->DevHandle;
cmd->request_desc->SCSIIO.MSIxIndex = cmd->request_desc->SCSIIO.MSIxIndex =
instance->msix_vectors ? smp_processor_id() % instance->msix_vectors : 0; instance->msix_vectors ?
raw_smp_processor_id() %
instance->msix_vectors :
0;
os_timeout_value = scmd->request->timeout / HZ; os_timeout_value = scmd->request->timeout / HZ;
if (instance->secure_jbod_support && if (instance->secure_jbod_support &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部