Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19319103 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds
Browse files

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: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2e2ba22e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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.