cgroup: remove duplicate code in find_css_set()
The list head res->tasks gets initialized twice in find_css_set(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
8d53d55d27
Коммит
68db38f153
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче