From: Tejun Heo Date: Mon, 7 Jan 2013 16:51:07 +0000 (-0800) Subject: cpuset: introduce cpuset_for_each_child() X-Git-Tag: v3.9-rc1~156^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8086ce15fdab2b57599d7a3242a114ba4b8597;p=pandora-kernel.git cpuset: introduce cpuset_for_each_child() Instead of iterating cgroup->children directly, introduce and use cpuset_for_each_child() which wraps cgroup_for_each_child() and performs online check. As it uses the generic iterator, it requires RCU read locking too. As cpuset is currently protected by cgroup_mutex, non-online cpusets aren't visible to all the iterations and this patch currently doesn't make any functional difference. This will be used to de-couple cpuset locking from cgroup core. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed