diff options
author | James Chapman <jchapman@katalix.com> | 2024-07-29 16:38:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-07-31 09:25:13 +0100 |
commit | 0aa45570c3241e3bdba1a8b5b30d200c819b5b15 (patch) | |
tree | db23f65675c903124d1b935c7766b751b3c164e9 /tools/perf/scripts/python/stackcollapse.py | |
parent | 89b768ec2dfefaeba5212de14fc71368e12d06ba (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 <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions