git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
memcgroup: fix check for thread being a group leader in memcgroup
[sfrench/cifs-2.6.git]
/
mm
/
memcontrol.c
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index 8b9f6cae938e98090a8850ba31a8aaf24cc1a1c7..9b648bd63451dd81026649f244a6f8ae0d4b0699 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-1079,7
+1079,7
@@
static void mem_cgroup_move_task(struct cgroup_subsys *ss,
* Only thread group leaders are allowed to migrate, the mm_struct is
* in effect owned by the leader
*/
- if (
p->tgid != p->pid
)
+ if (
!thread_group_leader(p)
)
goto out;
css_get(&mem->css);