From: Mike Galbraith Date: Sat, 21 Apr 2012 07:13:46 +0000 (+0200) Subject: cgroups: disallow attaching kthreadd or PF_THREAD_BOUND threads X-Git-Tag: v3.5-rc1~142^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c27fbdda4e8ba87806c415b6d15266b07bce4b;p=pandora-kernel.git cgroups: disallow attaching kthreadd or PF_THREAD_BOUND threads Allowing kthreadd to be moved to a non-root group makes no sense, it being a global resource, and needlessly leads unsuspecting users toward trouble. 1. An RT workqueue worker thread spawned in a task group with no rt_runtime allocated is not schedulable. Simple user error, but harmful to the box. 2. A worker thread which acquires PF_THREAD_BOUND can never leave a cpuset, rendering the cpuset immortal. Save the user some unexpected trouble, just say no. Signed-off-by: Mike Galbraith Acked-by: Peter Zijlstra Acked-by: Thomas Gleixner Acked-by: Li Zefan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed