Commit 68db38f1 authored by Li Zefan's avatar Li Zefan Committed by Linus Torvalds

cgroup: remove duplicate code in find_css_set()

The list head res->tasks gets initialized twice in find_css_set().
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarPaul Menage <menage@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8d53d55d
...@@ -470,7 +470,6 @@ static struct css_set *find_css_set( ...@@ -470,7 +470,6 @@ static struct css_set *find_css_set(
/* Link this cgroup group into the list */ /* Link this cgroup group into the list */
list_add(&res->list, &init_css_set.list); list_add(&res->list, &init_css_set.list);
css_set_count++; css_set_count++;
INIT_LIST_HEAD(&res->tasks);
write_unlock(&css_set_lock); write_unlock(&css_set_lock);
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment