lkml.org 
[lkml]   [2008]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [git pull] scheduler fixes

* Matthew Wilcox <matthew@wil.cx> wrote:

> IOW, what I think you're checking for is:
>
> task A task B
> if sem->count >0
> break;
> sem->count++
> wake_up_process(B)
> if (state == TASK_INTERRUPTIBLE && signal_pending(task))
> break;
>
> which can't happen because of sem->lock.

ok, agreed, that race cannot happen.

Ingo


\
 
 \ /
  Last update: 2008-05-11 15:49    [W:0.110 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site