Lines Matching defs:owner
165 static void turnstile_setowner(struct turnstile *ts, struct thread *owner);
219 * This might be a read lock with no owner. There's
475 * Set the owner of the lock this turnstile is attached to.
478 turnstile_setowner(struct turnstile *ts, struct thread *owner)
484 /* A shared lock might not have an owner. */
485 if (owner == NULL)
488 MPASS(owner->td_proc->p_magic == P_MAGIC);
489 ts->ts_owner = owner;
490 LIST_INSERT_HEAD(&owner->td_contested, ts, ts_link);
699 * owner appropriately.
704 struct thread *td, *owner;
710 owner = curthread;
712 turnstile_setowner(ts, owner);
721 * Update the priority of the new owner if needed.
723 thread_lock(owner);
724 if (td->td_priority < owner->td_priority)
725 sched_lend_prio(owner, td->td_priority);
726 thread_unlock(owner);
739 turnstile_wait(struct turnstile *ts, struct thread *owner, int queue)
747 if (owner)
748 MPASS(owner->td_proc->p_magic == P_MAGIC);
779 turnstile_setowner(ts, owner);
790 MPASS(owner == ts->ts_owner);
981 * owner. There might not be a current owner if this is a shared
1041 * owner.
1174 struct thread *owner;
1178 * blocked on a lock that has an owner.
1212 if (!lockmgr_chain(td, &owner) &&
1213 !sx_chain(td, &owner)) {
1218 if (owner == NULL)
1220 td = owner;