aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2024-07-04 19:03:40 +0200
committerPeter Zijlstra <[email protected]>2024-07-09 13:26:36 +0200
commit16b9569df9d2ab07eeee075cb7895e9d3e08e8f0 (patch)
treef90b1ab059207cb3715b832d260c2f4d3064eaf3 /lib/memory-notifier-error-inject.c
parent0d40a6d83e3e6751f1107ba33587262d937c969f (diff)
perf: Don't disable preemption in perf_pending_task().
perf_pending_task() is invoked in task context and disables preemption because perf_swevent_get_recursion_context() used to access per-CPU variables. The other reason is to create a RCU read section while accessing the perf_event. The recursion counter is no longer a per-CPU accounter so disabling preemption is no longer required. The RCU section is needed and must be created explicit. Replace the preemption-disable section with a explicit RCU-read section. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Marco Elver <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions