]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/fork.c
trim task_work: get rid of hlist
[mirror_ubuntu-bionic-kernel.git] / kernel / fork.c
index ab5211b9e622cf94d07b7bfb4ccfd9bac85e7b79..bebabad59202bb71391358701a8f3ca9c36e9809 100644 (file)
@@ -1415,7 +1415,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
         */
        p->group_leader = p;
        INIT_LIST_HEAD(&p->thread_group);
-       INIT_HLIST_HEAD(&p->task_works);
+       p->task_works = NULL;
 
        /* Now that the task is set up, run cgroup callbacks if
         * necessary. We need to run them before the task is visible