From: Oleg Nesterov Date: Thu, 10 Jun 2010 23:10:18 +0000 (+0200) Subject: sched: run_posix_cpu_timers: Don't check ->exit_state, use lock_task_sighand() X-Git-Tag: v2.6.36-rc1~531^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bdd2ed4138ec04e09b4f8165981efc99e439f55;p=pandora-kernel.git sched: run_posix_cpu_timers: Don't check ->exit_state, use lock_task_sighand() run_posix_cpu_timers() doesn't work if current has already passed exit_notify(). This was needed to prevent the races with do_wait(). Since ea6d290c ->signal is always valid and can't go away. We can remove the "tsk->exit_state == 0" in fastpath_timer_check() and convert run_posix_cpu_timers() to use lock_task_sighand(). Note: it makes sense to take group_leader's sighand instead, the sub-thread still uses CPU after release_task(). But we need more changes to do this. Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra LKML-Reference: <20100610231018.GA25942@redhat.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed