Re: [PATCH 1/1] workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value

From: Tejun Heo

Date: Tue Apr 07 2026 - 14:18:56 EST


Hello,

On Tue, Apr 7, 2026 at 09:12:15AM +0530, Maninder Singh wrote:
> use NR_STD_WORKER_POOLS for irq_work_fns[] array definition.
> NR_STD_WORKER_POOLS is also 2, but better to use MACRO.
> Initialization loop for_each_bh_worker_pool() also uses same MACRO.

Applied to wq/for-7.1 with a small formatting tweak so the longer
declaration doesn't leave the initializer misaligned:

void (*irq_work_fns[NR_STD_WORKER_POOLS])(struct irq_work *) =
{ bh_pool_kick_normal, bh_pool_kick_highpri };

Thanks.

--
tejun