Commit 9eb4ac21 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Luis Henriques

megaraid_sas: use raw_smp_processor_id()

commit 16b8528d upstream.

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: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarAndy Lutomirski <luto@kernel.org>
Tested-by: default avatarAndy Lutomirski <luto@kernel.org>
Acked-by: default avatarSumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
[ luis: backported to 3.16:
  - dropped changes to megasas_build_dcdb_fusion() ]
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 06fc8830
...@@ -1500,11 +1500,11 @@ megasas_build_ldio_fusion(struct megasas_instance *instance, ...@@ -1500,11 +1500,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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment