Commit 4223bf8
bpf: Remove preempt_disable in bpf_try_get_buffers
Now BPF program will run with migration disabled, so it is safe
to access this_cpu_inc_return(bpf_bprintf_nest_level).
Fixes: d9c9e4d ("bpf: Factorize bpf_trace_printk and bpf_seq_printf")
Signed-off-by: Tao Chen <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]1 parent d47cc4d commit 4223bf8
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | 777 | | |
779 | 778 | | |
780 | 779 | | |
781 | | - | |
782 | 780 | | |
783 | 781 | | |
784 | 782 | | |
| |||
791 | 789 | | |
792 | 790 | | |
793 | 791 | | |
794 | | - | |
795 | 792 | | |
796 | 793 | | |
797 | 794 | | |
| |||
0 commit comments