projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d53d55
)
cgroup: remove duplicate code in find_css_set()
author
Li Zefan
<lizf@cn.fujitsu.com>
Sat, 23 Feb 2008 23:24:11 +0000
(15:24 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 24 Feb 2008 01:13:25 +0000
(17:13 -0800)
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>
kernel/cgroup.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index
8412593
..
2aa4082
100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-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;