Re: [PATCH] cpuset: fix a regression in validating config change

2013-08-21 Thread Tejun Heo
Zefan Date: Wed, 21 Aug 2013 10:22:28 +0800 Subject: [PATCH] cpuset: fix a regression in validating config change It's not allowed to clear masks of a cpuset if there're tasks in it, but it's broken: # mkdir /cgroup/sub # echo 0 > /cgroup/sub/cpuset.cpus # echo 0 > /cgroup/sub/cpuset.m

Re: [PATCH] cpuset: fix a regression in validating config change

2013-08-21 Thread Tejun Heo
...@huawei.com Date: Wed, 21 Aug 2013 10:22:28 +0800 Subject: [PATCH] cpuset: fix a regression in validating config change It's not allowed to clear masks of a cpuset if there're tasks in it, but it's broken: # mkdir /cgroup/sub # echo 0 /cgroup/sub/cpuset.cpus # echo 0 /cgroup/sub

[PATCH] cpuset: fix a regression in validating config change

2013-08-20 Thread Li Zefan
It's not allowed to clear masks of a cpuset if there're tasks in it, but it's broken: # mkdir /cgroup/sub # echo 0 > /cgroup/sub/cpuset.cpus # echo 0 > /cgroup/sub/cpuset.mems # echo $$ > /cgroup/sub/tasks # echo > /cgroup/sub/cpuset.cpus (should fail) This bug was introduced by

[PATCH] cpuset: fix a regression in validating config change

2013-08-20 Thread Li Zefan
It's not allowed to clear masks of a cpuset if there're tasks in it, but it's broken: # mkdir /cgroup/sub # echo 0 /cgroup/sub/cpuset.cpus # echo 0 /cgroup/sub/cpuset.mems # echo $$ /cgroup/sub/tasks # echo /cgroup/sub/cpuset.cpus (should fail) This bug was introduced by commit