Commit c13cf856 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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: default avatarMatt Helsley <matthltc@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ff88a3b2
...@@ -1135,13 +1135,13 @@ static task_t *copy_process(unsigned long clone_flags, ...@@ -1135,13 +1135,13 @@ static task_t *copy_process(unsigned long clone_flags,
__get_cpu_var(process_counts)++; __get_cpu_var(process_counts)++;
} }
proc_fork_connector(p);
if (!current->signal->tty && p->signal->tty) if (!current->signal->tty && p->signal->tty)
p->signal->tty = NULL; p->signal->tty = NULL;
nr_threads++; nr_threads++;
total_forks++; total_forks++;
write_unlock_irq(&tasklist_lock); write_unlock_irq(&tasklist_lock);
proc_fork_connector(p);
retval = 0; retval = 0;
fork_out: fork_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment