From: Yury Norov Date: Tue, 28 Jan 2025 16:46:39 +0000 (-0500) Subject: scsi: lpfc: switch lpfc_irq_rebalance() to using cpumask_next_wrap() X-Git-Tag: v6.15-rc1~222^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fef7ed1587c7c1a9288966435dc97072b6f01cc;p=thirdparty%2Flinux.git 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 Signed-off-by: Yury Norov --- diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 5f75319c8f95d..96efeecc67cbb 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 */