[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTino0k-wok9kXLmWTyr40dZKSCnR0Uk41uxAj5k1@mail.gmail.com>
Date: Fri, 28 May 2010 15:25:08 -0700
From: Paul Menage <menage@...gle.com>
To: Greg Thelen <gthelen@...gle.com>
Cc: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Li Zefan <lizf@...fujitsu.com>,
Andrew Morton <akpm@...ux-foundation.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Ben Blum <bblum@...rew.cmu.edu>,
containers@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cgroup: alloc_css_id() increments hierarchy depth
On Fri, May 28, 2010 at 8:16 AM, Greg Thelen <gthelen@...gle.com> wrote:
>
> Signed-off-by: Greg Thelen <gthelen@...gle.com>
Acked-by: Paul Menage <menage@...gle.com>
Good catch, thanks.
Paul
> ---
> kernel/cgroup.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 422cb19..3ac6f5b 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -4598,7 +4598,7 @@ static int alloc_css_id(struct cgroup_subsys *ss, struct cgroup *parent,
> parent_css = parent->subsys[subsys_id];
> child_css = child->subsys[subsys_id];
> parent_id = parent_css->id;
> - depth = parent_id->depth;
> + depth = parent_id->depth + 1;
>
> child_id = get_new_cssid(ss, depth);
> if (IS_ERR(child_id))
> --
> 1.7.0.1
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists