* [PATCH -mm] send_group_sigqueue: don't take tasklist_lock
@ 2008-03-06 0:04 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2008-03-06 0:04 UTC (permalink / raw)
To: Andrew Morton
Cc: Pavel Emelyanov, Roland McGrath, Thomas Gleixner, linux-kernel
(depends on signals-re-assign-cld_continued-notification-from-the-sender-to-reciever.patch)
handle_stop_signal() was changed, now send_group_sigqueue() doesn't need
tasklist_lock.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 25/kernel/signal.c~5_SGS_NO_TASKLIST 2008-03-06 01:34:57.000000000 +0300
+++ 25/kernel/signal.c 2008-03-06 02:54:27.000000000 +0300
@@ -1336,7 +1336,6 @@ send_group_sigqueue(int sig, struct sigq
BUG_ON(!(q->flags & SIGQUEUE_PREALLOC));
- read_lock(&tasklist_lock);
/* Since it_lock is held, p->sighand cannot be NULL. */
spin_lock_irqsave(&p->sighand->siglock, flags);
@@ -1345,7 +1344,7 @@ send_group_sigqueue(int sig, struct sigq
__group_complete_signal(sig, p);
spin_unlock_irqrestore(&p->sighand->siglock, flags);
- read_unlock(&tasklist_lock);
+
return ret;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-06 0:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-06 0:04 [PATCH -mm] send_group_sigqueue: don't take tasklist_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®