From: Oleg Nesterov Date: Wed, 30 Apr 2008 07:52:51 +0000 (-0700) Subject: signals: do_tkill: don't use tasklist_lock X-Git-Tag: v2.6.26-rc1~292 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3547ff3aefbe092ca35506c60c02e2d17a4f2199;p=pandora-kernel.git signals: do_tkill: don't use tasklist_lock Convert do_tkill() to use rcu_read_lock() + lock_task_sighand() to avoid taking tasklist lock. Note that we don't return an error if lock_task_sighand() fails, we pretend the task dies after receiving the signal. Otherwise, we should fight with the nasty races with mt-exec without having any advantage. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed