Re: [PATCH v3 05/12] cpuset: use effective cpumask to build sched domains

2014-07-09 Thread Tejun Heo
On Wed, Jul 09, 2014 at 04:47:50PM +0800, Li Zefan wrote: > + /* > + * If the effective cpumask of any non-empty cpuset is changed, > + * we need to rebuild sched domains. > + */ > + if (!cpumask_empty(cp->cpus_allowed) && > +

[PATCH v3 05/12] cpuset: use effective cpumask to build sched domains

2014-07-09 Thread Li Zefan
We're going to have separate user-configured masks and effective ones. Eventually configured masks can only be changed by writing cpuset.cpus and cpuset.mems, and they won't be restricted by parent cpuset. While effective masks reflect cpu/memory hotplug and hierachical restriction, and these are

[PATCH v3 05/12] cpuset: use effective cpumask to build sched domains

2014-07-09 Thread Li Zefan
We're going to have separate user-configured masks and effective ones. Eventually configured masks can only be changed by writing cpuset.cpus and cpuset.mems, and they won't be restricted by parent cpuset. While effective masks reflect cpu/memory hotplug and hierachical restriction, and these are

Re: [PATCH v3 05/12] cpuset: use effective cpumask to build sched domains

2014-07-09 Thread Tejun Heo
On Wed, Jul 09, 2014 at 04:47:50PM +0800, Li Zefan wrote: + /* + * If the effective cpumask of any non-empty cpuset is changed, + * we need to rebuild sched domains. + */ + if (!cpumask_empty(cp-cpus_allowed) +