Re: [PATCH v2 05/10] cpuset: re-structure update_cpumask() a bit

2013-06-05 Thread Tejun Heo
On Wed, Jun 05, 2013 at 05:15:59PM +0800, Li Zefan wrote: > Check if cpus_allowed is to be changed before calling validate_change(). > > This won't change any behavior, but later it will allow us to do this: > > # mkdir /cpuset/child > # echo $$ > /cpuset/child/tasks /* empty cpuset */ >

[PATCH v2 05/10] cpuset: re-structure update_cpumask() a bit

2013-06-05 Thread Li Zefan
Check if cpus_allowed is to be changed before calling validate_change(). This won't change any behavior, but later it will allow us to do this: # mkdir /cpuset/child # echo $$ > /cpuset/child/tasks/* empty cpuset */ # echo > /cpuset/child/cpuset.cpus /* do nothing, won't fail */ W