* [PATCH -mm 1/2] send_sigqueue: don't take rcu lock
@ 2008-03-05 21:53 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2008-03-05 21:53 UTC (permalink / raw)
To: Andrew Morton
Cc: Pavel Emelyanov, Roland McGrath, Thomas Gleixner, linux-kernel
(depends on lock_task_sighand-add-rcu-lock-unlock.patch)
lock_task_sighand() was changed, send_sigqueue() doesn't need rcu_read_lock()
any longer.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 25/kernel/signal.c~1_SS_NO_RCU 2008-03-06 00:31:08.000000000 +0300
+++ 25/kernel/signal.c 2008-03-06 00:35:35.000000000 +0300
@@ -1311,8 +1311,6 @@ int send_sigqueue(int sig, struct sigque
* 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 sigque
unlock_task_sighand(p, &flags);
out_err:
- rcu_read_unlock();
-
return ret;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-05 21:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05 21:53 [PATCH -mm 1/2] send_sigqueue: don't take rcu lock Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®