Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: lpfc: switch lpfc_irq_rebalance() to using cpumask_next_wrap()

Calling cpumask_next_wrap_old() with starting CPU equal to wrapping CPU
is the same as request to find next CPU, wrapping around if needed.

cpumask_next_wrap() is the proper replacement for that.

Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>

+1 -1
+1 -1
drivers/scsi/lpfc/lpfc_init.c
··· 12873 12873 12874 12874 if (offline) { 12875 12875 /* Find next online CPU on original mask */ 12876 - cpu_next = cpumask_next_wrap_old(cpu, orig_mask, cpu, true); 12876 + cpu_next = cpumask_next_wrap(cpu, orig_mask); 12877 12877 cpu_select = lpfc_next_online_cpu(orig_mask, cpu_next); 12878 12878 12879 12879 /* Found a valid CPU */