]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: lpfc: switch lpfc_irq_rebalance() to using cpumask_next_wrap()
authorYury Norov <yury.norov@gmail.com>
Tue, 28 Jan 2025 16:46:39 +0000 (11:46 -0500)
committerYury Norov <yury.norov@gmail.com>
Mon, 24 Feb 2025 21:37:23 +0000 (16:37 -0500)
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>
drivers/scsi/lpfc/lpfc_init.c

index 5f75319c8f95d643ebac814aebd1bd2157d59525..96efeecc67cbb55d18d700a231604ac0a78d5cb0 100644 (file)
@@ -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 */