Re: [PATCH] workqueue: Make create_worker() safe against spurious wakeups

Lai Jiangshan
2022-08-04T10:19:28Z

On Thu, Aug 4, 2022 at 4:57 PM Lai Jiangshan <jiangshanlai@gmail.com> wrote:
;
>
> There might be some wakeups from wake_up_worker() since it is in
> the idle list. These wakeups will be "spurious wakeups" in the view
> of the completion subsystem.
>

Oh, sorry, I was wrong. "complete(&worker->ready_to_start);" and
"worker_enter_idle(worker);" are in the same pool lock region.

There are no "spurious wakeups" from "wake_up_worker()" as I have
wrongly described.