aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorJames Chapman <[email protected]>2024-07-29 16:38:12 +0100
committerDavid S. Miller <[email protected]>2024-07-31 09:25:13 +0100
commit0aa45570c3241e3bdba1a8b5b30d200c819b5b15 (patch)
treedb23f65675c903124d1b935c7766b751b3c164e9 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parent89b768ec2dfefaeba5212de14fc71368e12d06ba (diff)
l2tp: add idr consistency check in session_register
l2tp_session_register uses an idr_alloc then idr_replace pattern to insert sessions into the session IDR. To catch invalid locking, add a WARN_ON_ONCE if the IDR entry is modified by another thread between alloc and replace steps. Also add comments to make expectations clear. Signed-off-by: James Chapman <[email protected]> Signed-off-by: Tom Parkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions