diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-30 19:16:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-30 19:16:21 -0500 |
commit | bb758e9637e5ddcff84a97177415499ae1fed498 (patch) | |
tree | a4dbc2a0427a30fc9c54148c6ff7ecf21947e3ae /fs/exec.c | |
parent | 5f34fe1cfc1bdd8b4711bbe37421fba4ed0d1ed4 (diff) | |
parent | 32e8d18683adb322c994d1a0fe02d66380991f45 (diff) |
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
hrtimers: fix warning in kernel/hrtimer.c
x86: make sure we really have an hpet mapping before using it
x86: enable HPET on Fujitsu u9200
linux/timex.h: cleanup for userspace
posix-timers: simplify de_thread()->exit_itimers() path
posix-timers: check ->it_signal instead of ->it_pid to validate the timer
posix-timers: use "struct pid*" instead of "struct task_struct*"
nohz: suppress needless timer reprogramming
clocksource, acpi_pm.c: put acpi_pm_read_slow() under CONFIG_PCI
nohz: no softirq pending warnings for offline cpus
hrtimer: removing all ur callback modes, fix
hrtimer: removing all ur callback modes, fix hotplug
hrtimer: removing all ur callback modes
x86: correct link to HPET timer specification
rtc-cmos: export second NVRAM bank
Fixed up conflicts in sound/drivers/pcsp/pcsp.c and sound/core/hrtimer.c
manually.
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -773,7 +773,6 @@ static int de_thread(struct task_struct *tsk) | |||
773 | struct signal_struct *sig = tsk->signal; | 773 | struct signal_struct *sig = tsk->signal; |
774 | struct sighand_struct *oldsighand = tsk->sighand; | 774 | struct sighand_struct *oldsighand = tsk->sighand; |
775 | spinlock_t *lock = &oldsighand->siglock; | 775 | spinlock_t *lock = &oldsighand->siglock; |
776 | struct task_struct *leader = NULL; | ||
777 | int count; | 776 | int count; |
778 | 777 | ||
779 | if (thread_group_empty(tsk)) | 778 | if (thread_group_empty(tsk)) |
@@ -811,7 +810,7 @@ static int de_thread(struct task_struct *tsk) | |||
811 | * and to assume its PID: | 810 | * and to assume its PID: |
812 | */ | 811 | */ |
813 | if (!thread_group_leader(tsk)) { | 812 | if (!thread_group_leader(tsk)) { |
814 | leader = tsk->group_leader; | 813 | struct task_struct *leader = tsk->group_leader; |
815 | 814 | ||
816 | sig->notify_count = -1; /* for exit_notify() */ | 815 | sig->notify_count = -1; /* for exit_notify() */ |
817 | for (;;) { | 816 | for (;;) { |
@@ -863,8 +862,9 @@ static int de_thread(struct task_struct *tsk) | |||
863 | 862 | ||
864 | BUG_ON(leader->exit_state != EXIT_ZOMBIE); | 863 | BUG_ON(leader->exit_state != EXIT_ZOMBIE); |
865 | leader->exit_state = EXIT_DEAD; | 864 | leader->exit_state = EXIT_DEAD; |
866 | |||
867 | write_unlock_irq(&tasklist_lock); | 865 | write_unlock_irq(&tasklist_lock); |
866 | |||
867 | release_task(leader); | ||
868 | } | 868 | } |
869 | 869 | ||
870 | sig->group_exit_task = NULL; | 870 | sig->group_exit_task = NULL; |
@@ -873,8 +873,6 @@ static int de_thread(struct task_struct *tsk) | |||
873 | no_thread_group: | 873 | no_thread_group: |
874 | exit_itimers(sig); | 874 | exit_itimers(sig); |
875 | flush_itimer_signals(); | 875 | flush_itimer_signals(); |
876 | if (leader) | ||
877 | release_task(leader); | ||
878 | 876 | ||
879 | if (atomic_read(&oldsighand->count) != 1) { | 877 | if (atomic_read(&oldsighand->count) != 1) { |
880 | struct sighand_struct *newsighand; | 878 | struct sighand_struct *newsighand; |