]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sockmap, hash table is RCU so readers do not need locks
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 5 Jul 2018 15:06:01 +0000 (08:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 7 Jul 2018 22:16:58 +0000 (15:16 -0700)
commitd5f634cfc64cc4481823535766c1cf8f3c5f0de2
tree91b442e56a0eae99b6be5071dc95eaf2e2cddc12
parent00fd173c4278d113f7545080011c5447c5d4e56d
bpf: sockmap, hash table is RCU so readers do not need locks

This removes locking from readers of RCU hash table. Its not
necessary.

Fixes: 11052050f9ca ("bpf: sockmap, add hash map support")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/sockmap.c