Re: [PATCH v2 bpf-next 0/9] introduce bpf_spin_lock

2019-01-22 Thread Alexei Starovoitov
On Thu, Jan 17, 2019 at 10:14 PM Alexei Starovoitov wrote: > > Many algorithms need to read and modify several variables atomically. > Until now it was hard to impossible to implement such algorithms in BPF. > Hence introduce support for bpf_spin_lock. > > The api consists of 'struct bpf_spin_lock

[PATCH v2 bpf-next 0/9] introduce bpf_spin_lock

2019-01-17 Thread Alexei Starovoitov
Many algorithms need to read and modify several variables atomically. Until now it was hard to impossible to implement such algorithms in BPF. Hence introduce support for bpf_spin_lock. The api consists of 'struct bpf_spin_lock' that should be placed inside hash/array/cgroup_local_storage element