From: Ingo Molnar Date: Sun, 17 May 2009 09:24:08 +0000 (+0200) Subject: perf_counter: fix threaded task exit X-Git-Tag: v2.6.31-rc1~383^2~260 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0203026b58b4299ba7281c0b4b417207c1f05d0e;p=pandora-kernel.git perf_counter: fix threaded task exit Flushing counters in __exit_signal() with irqs disabled is not a good idea as perf_counter_exit_task() acquires mutexes. So flush it before acquiring the tasklist lock. (Note, we still need a fix for when the PID has been unhashed.) [ Impact: fix crash with inherited counters ] Cc: Peter Zijlstra Cc: Srivatsa Vaddagiri Cc: Paul Mackerras Cc: Corey Ashford Cc: Arnaldo Carvalho de Melo Cc: Marcelo Tosatti Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed