diff options
author | Mike Galbraith <[email protected]> | 2010-03-26 11:11:33 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-04-02 19:30:05 +0200 |
commit | 8bb39f9aa068262732fe44b965d7a6eb5a5a7d67 (patch) | |
tree | 820af25532c62179f518bda83ea27b6b21ee736b /tools/perf/scripts/python/check-perf-trace.py | |
parent | 257ef9d21f1b008a6c7425544b36641c4325a922 (diff) |
perf: Fix 'perf sched record' deadlock
perf sched record can deadlock a box should the holder of
handle->data->lock take an interrupt, and then attempt to
acquire an rq lock held by a CPU trying to acquire the
same lock. Disable interrupts.
CPU0 CPU1
sched event with rq->lock held
grab handle->data->lock
spin on handle->data->lock
interrupt
try to grab rq->lock
Reported-by: Li Zefan <[email protected]>
Signed-off-by: Mike Galbraith <[email protected]>
Tested-by: Li Zefan <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions