]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/tests: Use migrate disable instead of preempt disable
authorDavid Miller <davem@davemloft.net>
Mon, 24 Feb 2020 14:01:44 +0000 (15:01 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Feb 2020 00:20:09 +0000 (16:20 -0800)
commit54e2c575298ed68c261e1596215104c7fb2ad9c9
tree9ee0bb821124197be995ccbf76cead42a92c0581
parent9f03589a26cf179e2d4670c2e66808bb4929e342
bpf/tests: Use migrate disable instead of preempt disable

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.

[ tglx: Switched it over to migrate disable ]

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.785306549@linutronix.de
lib/test_bpf.c
net/bpf/test_run.c