On Mon, Nov 19, 2007 at 02:08:03PM +0100, Ingo Molnar wrote:
Sorry for the wrong subject. It was supposed to include the above bug fix,
related to how we walk the task group list.
Thinking abt it now, I realize that print_cfs_rq() can potentially
sleep and hence it cannot be surrounded by rcu_read_lock()/unlock().
And as Dipankar just pointed me, sched_create/destroy_group aren't
serialized at all currently, so we need a mutex to protect them. The
same mutex can be then used when walking the list in print_cfs_stats() ..
Will send update patches soon ..
--
Regards,
vatsa
-