bpf: devmap, use cond_resched instead of cpu_relax
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 8 Sep 2017 21:01:10 +0000 (14:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Sep 2017 04:11:00 +0000 (21:11 -0700)
commit374fb014fc5b15e420faa00af036868a635eadd3
tree0925d65fb3e7e0eec9f6d08f22086a861d294dac
parent5a67da2a71c64daeb456f6f3e87b5c7cecdc5ffa
bpf: devmap, use cond_resched instead of cpu_relax

Be a bit more friendly about waiting for flush bits to complete.
Replace the cpu_relax() with a cond_resched().

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/devmap.c