Skip to content

Commit 6fef7ed

Browse files
committed
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 <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent 0cad409 commit 6fef7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12873,7 +12873,7 @@ lpfc_irq_rebalance(struct lpfc_hba *phba, unsigned int cpu, bool offline)
1287312873

1287412874
if (offline) {
1287512875
/* 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);
1287712877
cpu_select = lpfc_next_online_cpu(orig_mask, cpu_next);
1287812878

1287912879
/* Found a valid CPU */

0 commit comments

Comments
 (0)