cpuset: let hotplug propagation work wait for task attaching
authorLi Zefan <lizefan@huawei.com>
Sun, 9 Jun 2013 09:14:22 +0000 (17:14 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 9 Jun 2013 15:47:13 +0000 (08:47 -0700)
Instead of triggering propagation work in cpuset_attach(), we make
hotplug propagation work wait until there's no task attaching in
progress.

IMO this is more robust. We won't see empty masks in cpuset_attach().

Also it's a preparation for removing propagation work. Without asynchronous
propagation we can't call move_tasks_in_empty_cpuset() in cpuset_attach(),
because otherwise we'll deadlock on cgroup_mutex.

tj: typo fixes.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

No differences found