tracepoints: use modules notifiers
[linux-2.6-block.git] / kernel / exit.c
index 80137a5d9467811ba4dab35c6e95790002a5f12a..ae2b92be5faec1efa73beefb63304a22d030fc16 100644 (file)
@@ -141,6 +141,11 @@ static void __exit_signal(struct task_struct *tsk)
        if (sig) {
                flush_sigqueue(&sig->shared_pending);
                taskstats_tgid_free(sig);
+               /*
+                * Make sure ->signal can't go away under rq->lock,
+                * see account_group_exec_runtime().
+                */
+               task_rq_unlock_wait(tsk);
                __cleanup_signal(sig);
        }
 }