From: Peter Zijlstra Date: Wed, 3 Jun 2009 12:01:36 +0000 (+0200) Subject: perf_counter: Fix race in counter initialization X-Git-Tag: v2.6.31-rc1~383^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96bbc16418bc691317f265d6bf98ba941ca9c1a;p=pandora-kernel.git perf_counter: Fix race in counter initialization We need the PID namespace and counter ID available when the counter overflows and we need to generate a sample event. [ Impact: fix kernel crash with high-frequency sampling ] Reported-by: Ingo Molnar Signed-off-by: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: John Kacur LKML-Reference: [ fixed a further crash and cleaned up the initialization a bit ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed