summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-04-30 00:52:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 08:29:35 -0700
commit5c193e8871b76f3bf8ed1e31f7af7c70890ebc4f (patch)
tree533b708c86908e8d1a439ef63a1c1515871715d7 /kernel
parentf6b76d4fb0039e077824be85ed4ac94e96beef86 (diff)
downloadlinux-5c193e8871b76f3bf8ed1e31f7af7c70890ebc4f.tar.gz
linux-5c193e8871b76f3bf8ed1e31f7af7c70890ebc4f.tar.bz2
linux-5c193e8871b76f3bf8ed1e31f7af7c70890ebc4f.zip
signals: send_sigqueue: don't take rcu lock
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index f92e6298930c..0a8b0aece80d 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -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;
@@ -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;
}