path: root/security/device_cgroup.c
diff options
authorTejun Heo <>2013-04-07 09:29:51 -0700
committerTejun Heo <>2013-04-07 09:29:51 -0700
commit2219449a65ace0290cd9c2260ff337e326b8be8a (patch)
treeca93a1567a9e07adec09a3384d23536dca44603f /security/device_cgroup.c
parent47cfcd0922454e49f4923b1e2d31a5bf199237c3 (diff)
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 <>
Diffstat (limited to 'security/device_cgroup.c')
0 files changed, 0 insertions, 0 deletions