diff --git a/kernel/cgroup.c b/kernel/cgroup.c index d9d5648f3cdcc4bcde3a7a67afe845aa89dc2a1f..a184470cf9b51c896826986deca941dd5dcf3d89 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2098,11 +2098,6 @@ int cgroup_attach_proc(struct cgroup *cgrp, struct task_struct *leader) continue; /* get old css_set pointer */ task_lock(tsk); - if (tsk->flags & PF_EXITING) { - /* ignore this task if it's going away */ - task_unlock(tsk); - continue; - } oldcg = tsk->cgroups; get_css_set(oldcg); task_unlock(tsk);