sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem
[firefly-linux-kernel-4.4.55.git] / kernel / fork.c
index 2845623fb58264eec28a8b99b48d4511856e718d..7d5f0f118a6348f81f08f10dd7dbb499f89dd243 100644 (file)
@@ -1149,10 +1149,6 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
        tty_audit_fork(sig);
        sched_autogroup_fork(sig);
 
-#ifdef CONFIG_CGROUPS
-       init_rwsem(&sig->group_rwsem);
-#endif
-
        sig->oom_score_adj = current->signal->oom_score_adj;
        sig->oom_score_adj_min = current->signal->oom_score_adj_min;