public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* odd timing bug with cgroups?
@ 2008-06-13 21:38 Chris Friesen
  2008-06-14  4:15 ` Valdis.Kletnieks
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Friesen @ 2008-06-13 21:38 UTC (permalink / raw)
  To: linux-kernel, vatsa, a.p.zijlstra


I'm seeing some odd behaviour in the case where a parent task forks a 
child and then immediately attempts to put the child into a group.

It appears that there is a window after task creation where the child 
task is in "limbo" such that the parent cannot put it into a group.  If 
I run the parent under "strace" or else sleep for a bit before trying to 
put the child into a group, then everything works fine.

This seems odd...I would think that as soon as the fork() call returns 
in the parent we should be able to put that task into a group.

I'm just starting to look at the code, but I thought I'd mention it in 
case someone knows exactly where to look.

Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-16 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-13 21:38 odd timing bug with cgroups? Chris Friesen
2008-06-14  4:15 ` Valdis.Kletnieks
2008-06-16 16:45   ` Chris Friesen
2008-06-16 21:29     ` odd timing bug with cgroups -- solved Chris Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox