lkml.org 
[lkml]   [2022]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] workqueue: Make create_worker() safe against spurious wakeups
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.

\
 
 \ /
  Last update: 2022-08-04 12:19    [W:0.140 / U:14.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site