diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2021-11-27 16:32:00 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-11-30 14:40:49 +0000 |
| commit | 79364031c5b4365ca28ac0fa00acfab5bf465be1 (patch) | |
| tree | ba6f3792751c1a6ed6d0b8757e8acbceb5859fdd /drivers/pci/controller/dwc/pcie-qcom-ep.c | |
| parent | Documentation/locking/locktypes: Update migrate_disable() bits. (diff) | |
| download | kernel-79364031c5b4365ca28ac0fa00acfab5bf465be1.tar.gz kernel-79364031c5b4365ca28ac0fa00acfab5bf465be1.zip | |
bpf: Make sure bpf_disable_instrumentation() is safe vs preemption.
The initial implementation of migrate_disable() for mainline was a
wrapper around preempt_disable(). RT kernels substituted this with a
real migrate disable implementation.
Later on mainline gained true migrate disable support, but neither
documentation nor affected code were updated.
Remove stale comments claiming that migrate_disable() is PREEMPT_RT only.
Don't use __this_cpu_inc() in the !PREEMPT_RT path because preemption is
not disabled and the RMW operation can be preempted.
Fixes: 74d862b682f51 ("sched: Make migrate_disable/enable() independent of RT")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
0 files changed, 0 insertions, 0 deletions
