Skip to content

Commit

Permalink
signals: send_sigqueue: don't take rcu lock
Browse files Browse the repository at this point in the history
lock_task_sighand() was changed, send_sigqueue() doesn't need rcu_read_lock()
any longer.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent f6b76d4 commit 5c193e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,6 @@ int send_sigqueue(int sig, struct sigqueue *q, struct task_struct *p)
* We return -1, when the task is marked exiting, so
* posix_timer_event can redirect it to the group leader
*/
rcu_read_lock();

if (!likely(lock_task_sighand(p, &flags)))
goto out_err;

Expand All @@ -1323,8 +1321,6 @@ int send_sigqueue(int sig, struct sigqueue *q, struct task_struct *p)

unlock_task_sighand(p, &flags);
out_err:
rcu_read_unlock();

return ret;
}

Expand Down

0 comments on commit 5c193e8

Please sign in to comment.