diff options
author | Yury Norov <yury.norov@gmail.com> | 2025-01-28 11:46:39 -0500 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2025-02-24 16:37:23 -0500 |
commit | 6fef7ed1587c7c1a9288966435dc97072b6f01cc (patch) | |
tree | c7323a55b89a59cce3538a23532a1b44673f9549 | |
parent | 0cad4092858767cb54b5ec9be5b3fc39756abd46 (diff) |
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>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 5f75319c8f95..96efeecc67cb 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -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 */ |