Commit c13cf856cbe16aec3007604dc013cbf3a16c6686
Committed by
Linus Torvalds
1 parent
ff88a3b2f5
Exists in
master
and in
4 other branches
[PATCH] fork.c: proc_fork_connector() called under write_lock()
Don't do that - it does GFP_KERNEL allocations, for a start. (Reported by Guillaume Thouvenin <guillaume.thouvenin@bull.net>) Acked-by: Matt Helsley <matthltc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/fork.c
... | ... | @@ -1135,13 +1135,13 @@ |
1135 | 1135 | __get_cpu_var(process_counts)++; |
1136 | 1136 | } |
1137 | 1137 | |
1138 | - proc_fork_connector(p); | |
1139 | 1138 | if (!current->signal->tty && p->signal->tty) |
1140 | 1139 | p->signal->tty = NULL; |
1141 | 1140 | |
1142 | 1141 | nr_threads++; |
1143 | 1142 | total_forks++; |
1144 | 1143 | write_unlock_irq(&tasklist_lock); |
1144 | + proc_fork_connector(p); | |
1145 | 1145 | retval = 0; |
1146 | 1146 | |
1147 | 1147 | fork_out: |