]> err.no Git - linux-2.6/commit
[PATCH] fix de_thread vs it_real_fn() deadlock
authorOleg Nesterov <oleg@tv-sign.ru>
Sun, 30 Oct 2005 23:02:17 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:19 +0000 (17:37 -0800)
commit932aeafbe8521a9a9d790152d66020e0fef2029b
tree09b95edbd9c160962027a9b3dcbf3cb7fc7a2b90
parent2f51201662b28dbf8c15fb7eb972bc51c6cc3fa5
[PATCH] fix de_thread vs it_real_fn() deadlock

de_thread() calls del_timer_sync(->real_timer) under ->sighand->siglock.
This is deadlockable, it_real_fn sends a signal and needs this lock too.

Also, delete unneeded ->real_timer.data assignment.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c