diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2025-11-17 20:04:09 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-11-21 18:34:59 -0800 |
| commit | 4167096cb964325ed88cd558f5b0c61fcaab44c1 (patch) | |
| tree | 84542577e84db2cc7c41b0943380d21827cc897f /tools/lib/python/jobserver.py | |
| parent | 8f7cf305a15eec663d5084e417f4773f1ef24e23 (diff) | |
bpf: support nested rcu critical sections
Currently, nested rcu critical sections are rejected by the verifier and
rcu_lock state is managed by a boolean variable. Add support for nested
rcu critical sections by make active_rcu_locks a counter similar to
active_preempt_locks. bpf_rcu_read_lock() increments this counter and
bpf_rcu_read_unlock() decrements it, MEM_RCU -> PTR_UNTRUSTED transition
happens when active_rcu_locks drops to 0.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251117200411.25563-2-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/jobserver.py')
0 files changed, 0 insertions, 0 deletions
