cgroup: remove duplicate code in find_css_set()
PATCH 6/7 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 <[email protected]>
--- kernel/cgroup.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
kernel/cgroup.c +0 -1
@@ -473,7 +473,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;
Signature · 1 line
1.5.4.rc3
A message that is not in the archive (sent off-list or not yet received): [email protected]
Paul Menage
Acked-byQuoted 3 lines · Li Zefan
The list head
res->tasksgets initialized twice infind_css_set().Signed-off-by Li Zefan <[email protected]>
Acked-by Paul Menage <[email protected]>
Quoted 20 lines
--- kernel/cgroup.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)kernel/cgroup.c +0
-2@@ -473,7 +473,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; --1.5.4.rc3
Quoted 3 lines · Li Zefan
The list head
res->tasksgets initialized twice infind_css_set().Signed-off-by Li Zefan <[email protected]>
Acked-by Paul Menage <[email protected]>
Quoted 20 lines
--- kernel/cgroup.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)kernel/cgroup.c +0
-2@@ -473,7 +473,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; --1.5.4.rc3