btf: Add a new kfunc flag which allows to mark a function to be sleepable
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 5 Aug 2022 21:48:14 +0000 (14:48 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Aug 2022 16:11:17 +0000 (09:11 -0700)
commitfa96b24204af42274ec13dfb2f2e6990d7510e55
treeccc467d01ec4d09c09f9531b43e16b16ac6e490e
parentca34ce29fc4b0e929cc6aada40829d17ab50fee4
btf: Add a new kfunc flag which allows to mark a function to be sleepable

This allows to declare a kfunc as sleepable and prevents its use in
a non sleepable program.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Co-developed-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Hao Luo <haoluo@google.com>
Link: https://lore.kernel.org/r/20220805214821.1058337-2-haoluo@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/kfuncs.rst
include/linux/btf.h
kernel/bpf/btf.c