aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cper.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-09-09 16:37:37 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-09 18:57:23 -0700
commit31583bb0cf6cc40f2a468a4d2f3b9cbefd24f891 (patch)
tree1c9ff4ff83ef80fe0b9b5d6fa7ec9af1ebbc2209 /include/linux/cper.h
parented430fec756ad65f7cfba24f8ad17c3d5a403290 (diff)
downloadkernel_samsung_aries-31583bb0cf6cc40f2a468a4d2f3b9cbefd24f891.zip
kernel_samsung_aries-31583bb0cf6cc40f2a468a4d2f3b9cbefd24f891.tar.gz
kernel_samsung_aries-31583bb0cf6cc40f2a468a4d2f3b9cbefd24f891.tar.bz2
cgroups: fix API thinko
Add cgroup_attach_task_all() The existing cgroup_attach_task_current_cg() API is called by a thread to attach another thread to all of its cgroups; this is unsuitable for cases where a privileged task wants to attach itself to the cgroups of a less privileged one, since the call must be made from the context of the target task. This patch adds a more generic cgroup_attach_task_all() API that allows both the source task and to-be-moved task to be specified. cgroup_attach_task_current_cg() becomes a specialization of the more generic new function. [menage@google.com: rewrote changelog] [akpm@linux-foundation.org: address reviewer comments] Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Alex Williamson <alex.williamson@redhat.com> Acked-by: Paul Menage <menage@google.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Ben Blum <bblum@google.com> Cc: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cper.h')
0 files changed, 0 insertions, 0 deletions