Re: [RFC PATCH 4/4] kernel/workqueue: Let rescuers follow unbound wq cpumask changes

From: Lai Jiangshan
Date: Tue Jan 16 2024 - 22:57:07 EST


Hello, Juri

On Wed, Jan 17, 2024 at 12:20 AM Juri Lelli <juri.lelli@xxxxxxxxxx> wrote:

> + /* rescuer needs to respect wq cpumask changes */
> + if (ctx->wq->rescuer) {
> + set_cpus_allowed_ptr(ctx->wq->rescuer->task, ctx->attrs->cpumask);
> + wake_up_process(ctx->wq->rescuer->task);
> + }
> +

What's the reason to wake up the rescuer?

I support this patch except for the wakeup:
Reviewed-by: Lai Jiangshan <jiangshanlai@xxxxxxxxx>

Thanks

Lai