bpf: Factor out bpf_spin_lock into helpers.
authorAlexei Starovoitov <ast@kernel.org>
Thu, 15 Jul 2021 00:54:08 +0000 (17:54 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 15 Jul 2021 20:31:10 +0000 (22:31 +0200)
commitc1b3fed319d32a721d4b9c17afaeb430444ff773
tree061aa64528a542914688c2659b70c966b75de0d2
parentd809e134be7a1fdd9f5b99ab3291c6da5c0b8240
bpf: Factor out bpf_spin_lock into helpers.

Move ____bpf_spin_lock/unlock into helpers to make it more clear
that quadruple underscore bpf_spin_lock/unlock are irqsave/restore variants.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210715005417.78572-3-alexei.starovoitov@gmail.com
kernel/bpf/helpers.c