Re: [PATCH v6 08/21] workqueue: Use global variant for add_timer()

From: Tejun Heo
Date: Wed May 10 2023 - 15:30:29 EST


On Wed, May 10, 2023 at 09:28:04AM +0200, Anna-Maria Behnsen wrote:
> The implementation of the NOHZ pull at expiry model will change the timer
> bases per CPU. Timers, that have to expire on a specific CPU, require the
> TIMER_PINNED flag. If the CPU doesn't matter, the TIMER_PINNED flag must be
> dropped. This is required for call sites which use the timer alternately as
> pinned and not pinned timer like workqueues do.
>
> Therefore use add_timer_global() to make sure TIMER_PINNED flag is dropped.
>
> Signed-off-by: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
> Cc: Tejun Heo <tj@xxxxxxxxxx>
> Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Please feel free to route the patch as you see fit.

Thanks.

--
tejun