Re: [PATCH 08/11] cpuset: separate configured masks and efffective masks

2013-08-23 Thread Tejun Heo
Hello, Li. On Fri, Aug 23, 2013 at 03:46:47PM +0800, Li Zefan wrote: > On 2013/8/21 22:08, Tejun Heo wrote: > > On Wed, Aug 21, 2013 at 06:00:42PM +0800, Li Zefan wrote: > >> @@ -2261,7 +2271,8 @@ static void cpuset_hotplug_workfn(struct work_struct > >> *work) > >>/* synchronize mems_allowed

Re: [PATCH 08/11] cpuset: separate configured masks and efffective masks

2013-08-23 Thread Li Zefan
On 2013/8/21 22:08, Tejun Heo wrote: > On Wed, Aug 21, 2013 at 06:00:42PM +0800, Li Zefan wrote: >> @@ -2261,7 +2271,8 @@ static void cpuset_hotplug_workfn(struct work_struct >> *work) >> /* synchronize mems_allowed to N_MEMORY */ >> if (mems_updated) { >> mutex_lock(&callba

Re: [PATCH 08/11] cpuset: separate configured masks and efffective masks

2013-08-21 Thread Tejun Heo
On Wed, Aug 21, 2013 at 06:00:42PM +0800, Li Zefan wrote: > @@ -2261,7 +2271,8 @@ static void cpuset_hotplug_workfn(struct work_struct > *work) > /* synchronize mems_allowed to N_MEMORY */ > if (mems_updated) { > mutex_lock(&callback_mutex); > - top_cpuset.mem

[PATCH 08/11] cpuset: separate configured masks and efffective masks

2013-08-21 Thread Li Zefan
Now we've used effective cpumasks to enforce hierarchical manner, we can use cs->{cpus,mems}_allowed as configured masks. Configured masks can be changed by writing cpuset.cpus and cpuset.mems only. The new behaviors are: - They won't be changed by hotplug anymore. - They won't be limited by its