cpuset: use css_task_iter_start/next/end() instead of css_scan_tasks()
authorTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:40 +0000 (06:58 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:40 +0000 (06:58 -0500)
commitd66393e54e0a9dc743e440eb36c58bd1158a560e
tree62aa7143ecca51903919ede1cee8f8802c79f042
parent96d365e0b86ee7ec6366c99669687e54c9f145e3
cpuset: use css_task_iter_start/next/end() instead of css_scan_tasks()

Now that css_task_iter_start/next_end() supports blocking while
iterating, there's no reason to use css_scan_tasks() which is more
cumbersome to use and scheduled to be removed.

Convert all css_scan_tasks() usages in cpuset to
css_task_iter_start/next/end().  This simplifies the code by removing
heap allocation and callbacks.

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