diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-10-17 02:27:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:55 -0400 |
commit | 42b2dd0a02c512cf59c96f5c227bf54bfe5bbf08 (patch) | |
tree | f9e4a572804897772d97e2db1ab0d2adcd28840c /kernel/fork.c | |
parent | bcbba6c10ef6b14b0542d7ed7380e95168175818 (diff) |
Shrink task_struct if CONFIG_FUTEX=n
robust_list, compat_robust_list, pi_state_list, pi_state_cache are
really used if futexes are on.
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 8a97e92c604f..3e764f6f2be1 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1156,13 +1156,14 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1156 | * Clear TID on mm_release()? | 1156 | * Clear TID on mm_release()? |
1157 | */ | 1157 | */ |
1158 | p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL; | 1158 | p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL; |
1159 | #ifdef CONFIG_FUTEX | ||
1159 | p->robust_list = NULL; | 1160 | p->robust_list = NULL; |
1160 | #ifdef CONFIG_COMPAT | 1161 | #ifdef CONFIG_COMPAT |
1161 | p->compat_robust_list = NULL; | 1162 | p->compat_robust_list = NULL; |
1162 | #endif | 1163 | #endif |
1163 | INIT_LIST_HEAD(&p->pi_state_list); | 1164 | INIT_LIST_HEAD(&p->pi_state_list); |
1164 | p->pi_state_cache = NULL; | 1165 | p->pi_state_cache = NULL; |
1165 | 1166 | #endif | |
1166 | /* | 1167 | /* |
1167 | * sigaltstack should be cleared when sharing the same VM | 1168 | * sigaltstack should be cleared when sharing the same VM |
1168 | */ | 1169 | */ |