Lines Matching refs:owner
28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init()
47 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init()
56 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local
58 if (owner == SPINLOCK_OWNER_INIT) in spin_dump()
59 owner = NULL; in spin_dump()
66 owner ? owner->comm : "<none>", in spin_dump()
67 owner ? task_pid_nr(owner) : -1, in spin_dump()
86 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before()
94 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
101 SPIN_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_spin_unlock()
104 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_spin_unlock()
186 RWLOCK_BUG_ON(lock->owner == current, lock, "recursion"); in debug_write_lock_before()
194 WRITE_ONCE(lock->owner, current); in debug_write_lock_after()
200 RWLOCK_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_write_unlock()
203 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_write_unlock()