Commit 6fef7ed1 authored by Yury Norov's avatar Yury Norov
Browse files

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: default avatarJustin Tee <justin.tee@broadcom.com>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent 0cad4092
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12873,7 +12873,7 @@ lpfc_irq_rebalance(struct lpfc_hba *phba, unsigned int cpu, bool offline)

	if (offline) {
		/* Find next online CPU on original mask */
		cpu_next = cpumask_next_wrap_old(cpu, orig_mask, cpu, true);
		cpu_next = cpumask_next_wrap(cpu, orig_mask);
		cpu_select = lpfc_next_online_cpu(orig_mask, cpu_next);

		/* Found a valid CPU */