]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/exit.c
ARM: 6193/1: RealView: Align the machine_desc.phys_io to 1MB section
[net-next-2.6.git] / kernel / exit.c
index 3602f468e3a0c277030dfdaf95c6665ea77df47a..ceffc67b564ae28eb6b46be67bfcf4f0ab7e8c6a 100644 (file)
@@ -83,14 +83,10 @@ static void __exit_signal(struct task_struct *tsk)
        struct sighand_struct *sighand;
        struct tty_struct *uninitialized_var(tty);
 
-       BUG_ON(!sig);
-       BUG_ON(!atomic_read(&sig->count));
-
        sighand = rcu_dereference_check(tsk->sighand,
                                        rcu_read_lock_held() ||
                                        lockdep_tasklist_lock_is_held());
        spin_lock(&sighand->siglock);
-       atomic_dec(&sig->count);
 
        posix_cpu_timers_exit(tsk);
        if (group_dead) {
@@ -130,6 +126,7 @@ static void __exit_signal(struct task_struct *tsk)
                sig->sum_sched_runtime += tsk->se.sum_exec_runtime;
        }
 
+       sig->nr_threads--;
        __unhash_process(tsk, group_dead);
 
        /*
@@ -144,7 +141,6 @@ static void __exit_signal(struct task_struct *tsk)
        clear_tsk_thread_flag(tsk,TIF_SIGPENDING);
        if (group_dead) {
                flush_sigqueue(&sig->shared_pending);
-               taskstats_tgid_free(sig);
                tty_kref_put(tty);
        }
 }