cgroup: Fix cgroup_subsys::exit callback
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 7 Feb 2011 16:02:20 +0000 (17:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Feb 2011 12:30:47 +0000 (13:30 +0100)
commitd41d5a01631af821d3a3447e6613a316f5ee6c25
tree405ab6bc24e06a64dc17ccafb6daead1400cb29e
parentb00560f2d4de69bb12f66f9605985b516df98d77
cgroup: Fix cgroup_subsys::exit callback

Make the ::exit method act like ::attach, it is after all very nearly
the same thing.

The bug had no effect on correctness - fixing it is an optimization for
the scheduler. Also, later perf-cgroups patches rely on it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Paul Menage <menage@google.com>
LKML-Reference: <1297160655.13327.92.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/cgroup.h
kernel/cgroup.c
kernel/sched.c