From: Aristeu Rozanski Date: Fri, 15 Feb 2013 16:55:46 +0000 (-0500) Subject: devcg: use css_online and css_offline X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~124^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1909554c9715e4d032497993bb56f2726bfa89ae;p=pandora-kernel.git devcg: use css_online and css_offline Allocate resources and change behavior only when online. This is needed in order to determine if a node is suitable for hierarchy propagation or if it's being removed. Locking: Both functions take devcgroup_mutex to make changes to device_cgroup structure. Hierarchy propagation will also take devcgroup_mutex before walking the tree while walking the tree itself is protected by rcu lock. Acked-by: Tejun Heo Acked-by: Serge Hallyn Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski Signed-off-by: Tejun Heo --- Reading git-diff-tree failed