Searched refs:rqh (Results 1 – 2 of 2) sorted by relevance
| /linux/include/asm-generic/ |
| H A D | rqspinlock.h | 112 struct rqspinlock_held *rqh = this_cpu_ptr(&rqspinlock_held_locks); in release_held_lock_entry() local 114 if (unlikely(rqh->cnt > RES_NR_HELD)) in release_held_lock_entry() 116 WRITE_ONCE(rqh->locks[rqh->cnt - 1], NULL); in release_held_lock_entry() 200 struct rqspinlock_held *rqh = this_cpu_ptr(&rqspinlock_held_locks); in res_spin_unlock() local 219 if (likely(rqh->cnt <= RES_NR_HELD)) in res_spin_unlock() 220 WRITE_ONCE(rqh->locks[rqh->cnt - 1], NULL); in res_spin_unlock()
|
| /linux/kernel/bpf/ |
| H A D | rqspinlock.c | 101 struct rqspinlock_held *rqh = this_cpu_ptr(&rqspinlock_held_locks); in check_deadlock_AA() local 102 int cnt = min(RES_NR_HELD, rqh->cnt); in check_deadlock_AA() 109 if (rqh->locks[i] == lock) in check_deadlock_AA() 122 struct rqspinlock_held *rqh = this_cpu_ptr(&rqspinlock_held_locks); in check_deadlock_ABBA() local 123 int rqh_cnt = min(RES_NR_HELD, rqh->cnt); in check_deadlock_ABBA() 187 if (rqh->locks[i] == remote_lock) in check_deadlock_ABBA() 674 struct rqspinlock_held *rqh = this_cpu_ptr(&rqspinlock_held_locks); in bpf_prog_report_rqspinlock_violation() local 684 bpf_stream_printk(ss, "Total held locks = %d\n", rqh->cnt); in bpf_prog_report_rqspinlock_violation() 685 for (int i = 0; i < min(RES_NR_HELD, rqh->cnt); i++) in bpf_prog_report_rqspinlock_violation() 686 bpf_stream_printk(ss, "Held lock[%2d] = 0x%px\n", i, rqh->locks[i]); in bpf_prog_report_rqspinlock_violation()
|