From: Andrew Morton Date: Mon, 28 Nov 2005 21:43:48 +0000 (-0800) Subject: [PATCH] fork.c: proc_fork_connector() called under write_lock() X-Git-Tag: v2.6.15-rc3~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c13cf856cbe16aec3007604dc013cbf3a16c6686;p=linux-2.6-omap-h63xx.git [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 ) Acked-by: Matt Helsley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index 1c1cf8dc396..d0d49879ab7 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1135,13 +1135,13 @@ static task_t *copy_process(unsigned long clone_flags, __get_cpu_var(process_counts)++; } - proc_fork_connector(p); if (!current->signal->tty && p->signal->tty) p->signal->tty = NULL; nr_threads++; total_forks++; write_unlock_irq(&tasklist_lock); + proc_fork_connector(p); retval = 0; fork_out: