aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2009-08-13 11:47:54 +0200
committerIngo Molnar <[email protected]>2009-08-13 12:58:05 +0200
commit970892a9031a5dc7217bd394fb9d89fa75a4a7bc (patch)
treed6d5eee6d24cde67c279d5cc753512fc85cd9e5b /drivers/scsi/mpt2sas/mpt2sas_scsih.c
parent3dab77fb1bf89664bb1c9544607159dcab6f7d57 (diff)
perf_counter: Fix an ipi-deadlock
perf_pending_counter() is called from IRQ context and will call perf_counter_disable(), however perf_counter_disable() uses smp_call_function_single() which doesn't fancy being used with IRQs disabled due to IPI deadlocks. Fix this by making it use the local __perf_counter_disable() call and teaching the counter_sched_out() code about pending disables as well. This should cover the case where a counter migrates before the pending queue gets processed. Signed-off-by: Peter Zijlstra <[email protected]> Cc: Corey J Ashford <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: stephane eranian <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
0 files changed, 0 insertions, 0 deletions