lkml.org 
[lkml]   [2011]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/11] job control: reorganize wait_task_stopped()
Hello,

On Wed, May 11, 2011 at 05:48:54PM +0200, Oleg Nesterov wrote:
> > It seems that WNOHANG wait correctness has never been guaranteed and
> > everybody has been happy with it for very long time.
>
> Yes, the window is tiny. May be it was never noticed or never
> reported because this is hard to diagnose/reproduced.

Yeah, most likely.

> > As such,
> > although this reorganization improves the situation a bit, I don't
> > consider this to be a bug fix.
>
> But it is?
>
> Can't we push this patch ahead of these changes? I can merge it into
> ptrace branch.

It doesn't really fix the problem tho. The whole thing is full of
holes and I think it would be better to just declare "WNOHANG might
fail even when it's not supposed to, retry later" than making the
locking heavier there, which could easily be much more relevant
regression. Of course, if we can fix it without adding extra locking
or too much complexity, it would be nice.

Anyways, yeah, sure. I'll resend it as a separate patch.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-05-11 21:31    [W:0.135 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site