On Fri, Dec 24, 2010 at 3:59 PM, Peter Zijlstra <peterz@infradead.org> wrote:
While this patch is likely fine for solving the problem, it does add
extra work into the task exit path.
Could you instead just use the pre_destroy callback to return -EBUSY
if there are still any tasks on the cfs_rq? That way there'd only be a
penalty on cgroup destruction, which is a much rarer operation.
Paul
--