]> git.baikalelectronics.ru Git - kernel.git/commit
lwt_bpf: Replace preempt_disable() with migrate_disable()
authorCong Wang <cong.wang@bytedance.com>
Sat, 5 Dec 2020 07:59:46 +0000 (23:59 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 7 Dec 2020 19:53:40 +0000 (11:53 -0800)
commit8a11022f911e6859356cbfb0604441d3c302c38d
tree6c93ef39131e0a70e15c335b14b5e1f46349b3f0
parent439f2f93c42accd1b913b7b054d4457648c864b3
lwt_bpf: Replace preempt_disable() with migrate_disable()

migrate_disable() is just a wrapper for preempt_disable() in
non-RT kernel. It is safe to replace it, and RT kernel will
benefit.

Note that it is introduced since Feb 2020.

Suggested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201205075946.497763-2-xiyou.wangcong@gmail.com
net/core/lwt_bpf.c