|
@@ -9297,14 +9297,6 @@ static void perf_cgroup_exit(struct cgroup_subsys_state *css,
|
|
struct cgroup_subsys_state *old_css,
|
|
struct cgroup_subsys_state *old_css,
|
|
struct task_struct *task)
|
|
struct task_struct *task)
|
|
{
|
|
{
|
|
- /*
|
|
|
|
- * cgroup_exit() is called in the copy_process() failure path.
|
|
|
|
- * Ignore this case since the task hasn't ran yet, this avoids
|
|
|
|
- * trying to poke a half freed task state from generic code.
|
|
|
|
- */
|
|
|
|
- if (!(task->flags & PF_EXITING))
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
task_function_call(task, __perf_cgroup_move, task);
|
|
task_function_call(task, __perf_cgroup_move, task);
|
|
}
|
|
}
|
|
|
|
|