summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-01-08 12:03:28 +0300
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 07:13:57 +0300
commit86174cdcb44c095ffd2e3ca69caa56244cf701d5 (patch)
tree37d6cd5e6145fb659f436399268be1e7be950e61 /kernel
parent08efd10edff199f0c992f04052e897a3f2048508 (diff)
downloadlinux-86174cdcb44c095ffd2e3ca69caa56244cf701d5.tar.xz
[PATCH] remove unneeded sig->curr_target recalculation
This patch removes unneeded sig->curr_target recalculation under 'if (atomic_dec_and_test(&sig->count))' in __exit_signal(). When sig->count == 0 the signal can't be sent to this task and next_thread(tsk) == tsk anyway. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 114cf9209bcd..08aa5b263f36 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -364,8 +364,6 @@ void __exit_signal(struct task_struct *tsk)
posix_cpu_timers_exit(tsk);
if (atomic_dec_and_test(&sig->count)) {
posix_cpu_timers_exit_group(tsk);
- if (tsk == sig->curr_target)
- sig->curr_target = next_thread(tsk);
tsk->signal = NULL;
__exit_sighand(tsk);
spin_unlock(&sighand->siglock);