aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2025-03-16 04:05:37 +0000
committerAlexei Starovoitov <[email protected]>2025-03-19 15:03:05 +0000
commit47979314c0fe245ed54306e2f91b3f819c7c0f9f (patch)
tree7d62e24804b291cb74657d4aedfd7a8ec0114fca /lib/netdev-notifier-error-inject.c
parentbpf: Convert percpu_freelist.c to rqspinlock (diff)
downloadkernel-47979314c0fe245ed54306e2f91b3f819c7c0f9f.tar.gz
kernel-47979314c0fe245ed54306e2f91b3f819c7c0f9f.zip
bpf: Convert lpm_trie.c to rqspinlock
Convert all LPM trie usage of raw_spinlock to rqspinlock. Note that rcu_dereference_protected in trie_delete_elem is switched over to plain rcu_dereference, the RCU read lock should be held from BPF program side or eBPF syscall path, and the trie->lock is just acquired before the dereference. It is not clear the reason the protected variant was used from the commit history, but the above reasoning makes sense so switch over. Closes: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions