diff options
author | 2021-02-09 19:36:27 -0800 | |
---|---|---|
committer | 2021-02-11 16:18:55 +0100 | |
commit | 031d6e02ddbb8dea747c1abb697d556901f07dd4 (patch) | |
tree | 2a4acbda0c22f3a2df375ed31a4123e5f2bd761a /include/linux/bpf.h | |
parent | bpf: Optimize program stats (diff) | |
download | wireguard-linux-031d6e02ddbb8dea747c1abb697d556901f07dd4.tar.xz wireguard-linux-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 <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210210033634.62081-3-alexei.starovoitov@gmail.com
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions