[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130821140457.GG19286@mtj.dyndns.org>
Date: Wed, 21 Aug 2013 10:04:57 -0400
From: Tejun Heo <tj@...nel.org>
To: Li Zefan <lizefan@...wei.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Cgroups <cgroups@...r.kernel.org>,
Containers <containers@...ts.linux-foundation.org>
Subject: Re: [PATCH 07/11] cpuset: use effective cpumask to build sched
domains
On Wed, Aug 21, 2013 at 06:00:09PM +0800, Li Zefan wrote:
> @@ -887,10 +888,17 @@ static void update_cpumasks_hier(struct cpuset *cs, struct cpuset *trialcs,
>
> update_tasks_cpumask(cp, heap);
>
> + if (!cpumask_empty(cp->cpus_allowed) &&
> + is_sched_load_balance(cp))
> + need_rebuild_sched_domains = true;
> +
> rcu_read_lock();
> css_put(&cp->css);
> }
> rcu_read_unlock();
> +
> + if (need_rebuild_sched_domains)
> + rebuild_sched_domains_locked();
> }
>
> /**
> @@ -944,9 +952,6 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs,
> update_cpumasks_hier(cs, trialcs, &heap);
>
> heap_free(&heap);
> -
> - if (is_sched_load_balance(cs))
> - rebuild_sched_domains_locked();
Hmmm... can we please document what's going on with the above call and
add some comment explaining what it's doing and why it's where it's
at?
Thanks.
--
tejun
--
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