提交 68db38f1 编写于 作者: L Li Zefan 提交者: 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: NLi Zefan <lizf@cn.fujitsu.com>
Acked-by: NPaul Menage <menage@google.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8d53d55d
......@@ -470,7 +470,6 @@ static struct css_set *find_css_set(
/* Link this cgroup group into the list */
list_add(&res->list, &init_css_set.list);
css_set_count++;
INIT_LIST_HEAD(&res->tasks);
write_unlock(&css_set_lock);
return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册