diff options
| author | Fernando Luis Vazquez Cao <[email protected]> | 2014-03-06 05:25:28 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2014-03-11 10:33:48 +0000 |
| commit | 96b3d28bf4b00f62fc8386ff5d487d1830793a3d (patch) | |
| tree | 3e5f3fbd1ac4b194d10e3cda56a6640d3658adcb /fs/jbd2/commit.c | |
| parent | stop_machine: Fix^2 race between stop_two_cpus() and stop_cpus() (diff) | |
| download | kernel-96b3d28bf4b00f62fc8386ff5d487d1830793a3d.tar.gz kernel-96b3d28bf4b00f62fc8386ff5d487d1830793a3d.zip | |
sched/clock: Prevent tracing recursion in sched_clock_cpu()
Prevent tracing of preempt_disable/enable() in sched_clock_cpu().
When CONFIG_DEBUG_PREEMPT is enabled, preempt_disable/enable() are
traced and this causes trace_clock() users (and probably others) to
go into an infinite recursion. Systems with a stable sched_clock()
are not affected.
This problem is similar to that fixed by upstream commit 95ef1e52922
("KVM guest: prevent tracing recursion with kvmclock").
Signed-off-by: Fernando Luis Vazquez Cao <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/1394083528.4524.3.camel@nexus
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
