From: Tejun Heo Date: Sun, 7 Apr 2013 16:29:51 +0000 (-0700) Subject: cgroup: remove cgroup_lock_is_held() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~124^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2219449a65ace0290cd9c2260ff337e326b8be8a;p=pandora-kernel.git cgroup: remove cgroup_lock_is_held() We don't want controllers to assume that the information is officially available and do funky things with it. The only user is task_subsys_state_check() which uses it to verify RCU access context. We can move cgroup_lock_is_held() inside CONFIG_PROVE_RCU but that doesn't add meaningful protection compared to conditionally exposing cgroup_mutex. Remove cgroup_lock_is_held(), export cgroup_mutex iff CONFIG_PROVE_RCU and use lockdep_is_held() directly on the mutex in task_subsys_state_check(). While at it, add parentheses around macro arguments in task_subsys_state_check(). Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed