lkml.org 
[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] trivial: initialize root cgroup's sibling list
    On Fri, Sep 23, 2011 at 3:19 PM, Glauber Costa <glommer@parallels.com> wrote:
    > Even though there are no siblings, the list should be
    > initialized not to contain bogus values.
    >
    > Signed-off-by: Glauber Costa <glommer@parallels.com>

    Acked-by: Paul Menage <paul@paulmenage.org>

    Thanks,
    Paul

    > ---
    >  kernel/sched.c |    1 +
    >  1 files changed, 1 insertions(+), 0 deletions(-)
    >
    > diff --git a/kernel/sched.c b/kernel/sched.c
    > index ccacdbd..3ed4107 100644
    > --- a/kernel/sched.c
    > +++ b/kernel/sched.c
    > @@ -8082,6 +8082,7 @@ void __init sched_init(void)
    >  #ifdef CONFIG_CGROUP_SCHED
    >        list_add(&root_task_group.list, &task_groups);
    >        INIT_LIST_HEAD(&root_task_group.children);
    > +       INIT_LIST_HEAD(&root_task_group.siblings);
    >        autogroup_init(&init_task);
    >  #endif /* CONFIG_CGROUP_SCHED */
    >
    > --
    > 1.7.6
    >
    >
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-09-29 03:31    [W:5.277 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site