diff options
| author | Alexei Starovoitov <[email protected]> | 2021-02-10 03:36:27 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-02-11 15:18:55 +0000 |
| commit | 031d6e02ddbb8dea747c1abb697d556901f07dd4 (patch) | |
| tree | 2a4acbda0c22f3a2df375ed31a4123e5f2bd761a /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | bpf: Optimize program stats (diff) | |
| download | kernel-031d6e02ddbb8dea747c1abb697d556901f07dd4.tar.gz kernel-031d6e02ddbb8dea747c1abb697d556901f07dd4.zip | |
bpf: Run sleepable programs with migration disabled
In older non-RT kernels migrate_disable() was the same as preempt_disable().
Since commit 74d862b682f5 ("sched: Make migrate_disable/enable() independent of RT")
migrate_disable() is real and doesn't prevent sleeping.
Running sleepable programs with migration disabled allows to add support for
program stats and per-cpu maps later.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: KP Singh <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions
