[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48916CC9.8020705@cn.fujitsu.com>
Date: Thu, 31 Jul 2008 15:42:01 +0800
From: Lai Jiangshan <laijs@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Paul Jackson <pj@....com>, Paul Menage <menage@...gle.com>,
Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>,
Li Zefan <lizf@...fujitsu.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpuset: Add comments for update_domain_attr_tree
This patch was reviewed by Li Zefan and was revised on his suggestion before sent.
Thanks Li Zefan.
Reviewed-by: Li Zefan <lizf@...fujitsu.com>
Lai Jiangshan wrote:
> Add comments for update_domain_attr_tree().
>
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
> ---
> diff --git a/kernel/cpuset.c b/kernel/cpuset.c
> index adf66c0..fed1f42 100644
> --- a/kernel/cpuset.c
> +++ b/kernel/cpuset.c
> @@ -487,15 +487,21 @@ update_domain_attr(struct sched_domain_attr *dattr, struct cpuset *c)
> {
> if (dattr->relax_domain_level < c->relax_domain_level)
> dattr->relax_domain_level = c->relax_domain_level;
> - return;
> }
>
> +/*
> + * Helper routine for rebuild_sched_domains().
> + * Walk the specified cpuset subtree and update @dattr with the
> + * largest relax_domain_level.
> + *
> + * Called with cgroup_mutex held.
> + */
> static void
> -update_domain_attr_tree(struct sched_domain_attr *dattr, struct cpuset *c)
> +update_domain_attr_tree(struct sched_domain_attr *dattr, struct cpuset *root)
> {
> LIST_HEAD(q);
>
> - list_add(&c->stack_list, &q);
> + list_add(&root->stack_list, &q);
> while (!list_empty(&q)) {
> struct cpuset *cp;
> struct cgroup *cont;
>
>
> --
> 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/
>
>
>
--
业精于勤荒于嬉
--
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