Re: [PATCH v2 06/10] cpuset: record old_mems_allowed in struct cpuset

2013-06-06 Thread Li Zefan
On 2013/6/6 3:45, Tejun Heo wrote: > Hello, Li. > > On Wed, Jun 05, 2013 at 05:16:24PM +0800, Li Zefan wrote: >> @@ -1425,7 +1435,6 @@ static void cpuset_attach(struct cgroup *cgrp, struct >> cgroup_taskset *tset) >> * Change mm, possibly for multiple threads in a threadgroup. This is >>

Re: [PATCH v2 06/10] cpuset: record old_mems_allowed in struct cpuset

2013-06-05 Thread Tejun Heo
Hello, Li. On Wed, Jun 05, 2013 at 05:16:24PM +0800, Li Zefan wrote: > @@ -1425,7 +1435,6 @@ static void cpuset_attach(struct cgroup *cgrp, struct > cgroup_taskset *tset) >* Change mm, possibly for multiple threads in a threadgroup. This is >* expensive and may sleep. >*/

[PATCH v2 06/10] cpuset: record old_mems_allowed in struct cpuset

2013-06-05 Thread Li Zefan
When we update a cpuset's mems_allowed and thus update tasks' mems_allowed, it's required to pass the old mems_allowed and new mems_allowed to cpuset_migrate_mm(). Currently we save old mems_allowed in a temp local variable before changing cpuset->mems_allowed. This patch changes it by saving old