diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-04-30 03:52:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:35 -0400 |
commit | c99fcf28b87d8cab592db7571e3164f5cb54c5b3 (patch) | |
tree | 356ce5d2b0bfd33794a81bf4cd90abd7859776da /kernel/signal.c | |
parent | f8c5b5c06f63fe9aaebefbf9f0b79909066b1b6c (diff) |
signals: send_group_sigqueue: don't take tasklist_lock
handle_stop_signal() was changed, now send_group_sigqueue() doesn't need
tasklist_lock.
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/signal.c')
-rw-r--r-- | kernel/signal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 2a06f2441805..db442c59219e 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -1335,7 +1335,6 @@ send_group_sigqueue(int sig, struct sigqueue *q, struct task_struct *p) | |||
1335 | 1335 | ||
1336 | BUG_ON(!(q->flags & SIGQUEUE_PREALLOC)); | 1336 | BUG_ON(!(q->flags & SIGQUEUE_PREALLOC)); |
1337 | 1337 | ||
1338 | read_lock(&tasklist_lock); | ||
1339 | /* Since it_lock is held, p->sighand cannot be NULL. */ | 1338 | /* Since it_lock is held, p->sighand cannot be NULL. */ |
1340 | spin_lock_irqsave(&p->sighand->siglock, flags); | 1339 | spin_lock_irqsave(&p->sighand->siglock, flags); |
1341 | 1340 | ||
@@ -1344,7 +1343,7 @@ send_group_sigqueue(int sig, struct sigqueue *q, struct task_struct *p) | |||
1344 | __group_complete_signal(sig, p); | 1343 | __group_complete_signal(sig, p); |
1345 | 1344 | ||
1346 | spin_unlock_irqrestore(&p->sighand->siglock, flags); | 1345 | spin_unlock_irqrestore(&p->sighand->siglock, flags); |
1347 | read_unlock(&tasklist_lock); | 1346 | |
1348 | return ret; | 1347 | return ret; |
1349 | } | 1348 | } |
1350 | 1349 | ||