lkml.org 
[lkml]   [2020]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can you help diagnose a weird failed wake?
On Thu, Nov 19, 2020 at 03:53:42PM +0000, David Howells wrote:

> timeo = wait_var_event_timeout(&cookie->stage, cookie_stage_changed(cookie, stage), 10*HZ);

> cookie->stage = stage;
> changed = true;
> break;
> }
> spin_unlock(&cookie->lock);
> if (changed) {

smp_mb(); // see comment on wake_up_bit() / wakequeue_active()

> wake_up_var(&cookie->stage);


\
 
 \ /
  Last update: 2020-11-19 17:35    [W:0.041 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site