]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add schedule points to map alloc/free
authorEric Dumazet <edumazet@google.com>
Tue, 12 Dec 2017 22:22:39 +0000 (14:22 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Dec 2017 23:27:22 +0000 (15:27 -0800)
commit4c324133cabf0cb8f7f63fd92966e6306e54e98f
treee96ef5a6e898fd45ca4d48f467f71fa505ff807e
parent68f1155ba2b040ae9422ab86f7f06d4660e44a0a
bpf: add schedule points to map alloc/free

While using large percpu maps, htab_map_alloc() can hold
cpu for hundreds of ms.

This patch adds cond_resched() calls to percpu alloc/free
call sites, all running in process context.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/hashtab.c