From: Oleg Nesterov Date: Wed, 30 Apr 2008 07:53:02 +0000 (-0700) Subject: signals: check_kill_permission: remove tasklist_lock X-Git-Tag: MMI-PSA29.97-13-9~34747 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=193191035ad6268db9f561e81e3474b8be89a5ba;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git signals: check_kill_permission: remove tasklist_lock Now that task_session() can't return a false NULL, check_kill_permission() doesn't need tasklist_lock. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index 24be82c0aae3..02ef3548aeb0 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -551,9 +551,7 @@ static int check_kill_permission(int sig, struct siginfo *info, !capable(CAP_KILL)) { switch (sig) { case SIGCONT: - read_lock(&tasklist_lock); sid = task_session(t); - read_unlock(&tasklist_lock); /* * We don't return the error if sid == NULL. The * task was unhashed, the caller must notice this.