diff options
author | Li Zefan <lizefan@huawei.com> | 2013-08-21 02:22:28 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-08-21 12:40:27 (GMT) |
commit | 1c09b195d37fa459844036f429a0f378e70c3db6 (patch) | |
tree | f5a489a926304b07a982ea61a7ea8ebeaf253653 /Makefile | |
parent | a903f0865a190f8778c73df1a810ea6e25e5d7cf (diff) | |
download | linux-1c09b195d37fa459844036f429a0f378e70c3db6.tar.xz |
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.mems
# echo $$ > /cgroup/sub/tasks
# echo > /cgroup/sub/cpuset.cpus
(should fail)
This bug was introduced by commit 88fa523bff295f1d60244a54833480b02f775152
("cpuset: allow to move tasks to empty cpusets").
tj: Dropped temp bool variables and nestes the conditionals directly.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions