diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2024-06-20 15:22:03 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-06-24 16:41:23 -0700 |
commit | 78f520b7bbe579438dfc202226b3dac5607d8c7f (patch) | |
tree | 5153f67a77881d0cb30315535265f04093828146 /tools/perf/scripts/python/syscall-counts.py | |
parent | d1542d4ae4dfdc47c9b3205ebe849ed23af213dd (diff) |
net: Use nested-BH locking for bpf_scratchpad.
bpf_scratchpad is a per-CPU variable and relies on disabled BH for its
locking. Without per-CPU locking in local_bh_disable() on PREEMPT_RT
this data structure requires explicit locking.
Add a local_lock_t to the data structure and use local_lock_nested_bh()
for locking. This change adds only lockdep coverage and does not alter
the functional behaviour for !PREEMPT_RT.
Cc: Alexei Starovoitov <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Cc: Hao Luo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Fastabend <[email protected]>
Cc: KP Singh <[email protected]>
Cc: Martin KaFai Lau <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Stanislav Fomichev <[email protected]>
Cc: Yonghong Song <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions