bpf: Move bpf_free_used_maps into sleepable section
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 22 Nov 2019 20:07:55 +0000 (21:07 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 25 Nov 2019 01:03:44 +0000 (17:03 -0800)
commit6332be04c039a72fca32ed0a4265bac58d606bb6
treee6bb35f65a435ed543365e2ad750c3e69cb28e3a
parent4b3da77b72ad6b3c48c6fe4a395ace7db39a12c5
bpf: Move bpf_free_used_maps into sleepable section

We later on are going to need a sleepable context as opposed to plain
RCU callback in order to untrack programs we need to poke at runtime
and tracking as well as image update is performed under mutex.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/09823b1d5262876e9b83a8e75df04cf0467357a4.1574452833.git.daniel@iogearbox.net
include/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/syscall.c