]> Pileus Git - ~andy/linux/commit
cpuset: use rebuild_sched_domains() in cpuset_hotplug_workfn()
authorLi Zhong <zhong@linux.vnet.ibm.com>
Sat, 27 Apr 2013 13:52:43 +0000 (06:52 -0700)
committerTejun Heo <tj@kernel.org>
Sat, 27 Apr 2013 13:52:43 +0000 (06:52 -0700)
commite0e80a02e5701c8790bd348ab59edb154fbda60b
tree2fa0dc207322674ec0719857449971240d2b7e4e
parent7ef70e48735e17d2be5c8e8f85052842b16b923a
cpuset: use rebuild_sched_domains() in cpuset_hotplug_workfn()

In cpuset_hotplug_workfn(), partition_sched_domains() is called without
hotplug lock held, which is actually needed (stated in the function
header of partition_sched_domains()).

This patch tries to use rebuild_sched_domains() to solve the above
issue, and makes the code looks a little simpler.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cpuset.c