bpf: Use migrate_disable/enable in array macros and cgroup/lirc code.
authorDavid Miller <davem@davemloft.net>
Mon, 24 Feb 2020 14:01:46 +0000 (15:01 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Feb 2020 00:20:09 +0000 (16:20 -0800)
commit2a916f2f546ca1c1e3323e2a4269307f6d9890eb
tree55001914de022407ab96c717dc6ba7aa90e124f1
parent02ad05965491ca72034327d47da6cb25f3a92603
bpf: Use migrate_disable/enable in array macros and cgroup/lirc code.

Replace the preemption disable/enable with migrate_disable/enable() to
reflect the actual requirement and to allow PREEMPT_RT to substitute it
with an actual migration disable mechanism which does not disable
preemption.

Including the code paths that go via __bpf_prog_run_save_cb().

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200224145643.998293311@linutronix.de
include/linux/bpf.h
include/linux/filter.h