From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>, Paul Menage <menage@google.com>,
Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>,
Li Zefan <lizf@cn.fujitsu.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cpuset: Add comments for update_domain_attr_tree
Date: Thu, 31 Jul 2008 15:42:01 +0800 [thread overview]
Message-ID: <48916CC9.8020705@cn.fujitsu.com> (raw)
In-Reply-To: <489121F8.2020008@cn.fujitsu.com>
This patch was reviewed by Li Zefan and was revised on his suggestion before sent.
Thanks Li Zefan.
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Lai Jiangshan wrote:
> Add comments for update_domain_attr_tree().
>
> Signed-off-by: Lai Jiangshan <laijs@cn.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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
>
--
业精于勤荒于嬉
next prev parent reply other threads:[~2008-07-31 7:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 2:22 [PATCH] cpuset: Add comments for update_domain_attr_tree Lai Jiangshan
2008-07-31 7:42 ` Lai Jiangshan [this message]
2008-08-04 16:27 ` Paul Menage
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48916CC9.8020705@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=menage@google.com \
--cc=pj@sgi.com \
--cc=seto.hidetoshi@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox