Lines Matching defs:owner
203 * If the current owner of the lock (l->l_wchan, set by sleepq_enqueue)
224 lwp_t *owner;
232 * Ask syncobj the owner of the lock.
234 owner = (*l->l_syncobj->sobj_owner)(l->l_wchan);
235 if (owner == NULL)
239 * The owner may have changed as we have dropped the tc lock.
241 if (cur == owner) {
249 * Acquire owner->l_mutex if we don't have it yet.
253 dolock = l->l_mutex != atomic_load_relaxed(&owner->l_mutex);
254 if (l == owner || (dolock && !lwp_trylock(owner))) {
256 * The owner was changed behind us or trylock failed.
260 * the owner may try grabbing cur's lock (which is the
261 * tc lock) while we're trying to grab the owner's lock.
270 * If the owner's priority is already higher than ours,
273 if (prio <= lwp_eprio(owner)) {
275 lwp_unlock(owner);
279 * Lend our priority to the 'owner' LWP.
284 KASSERT(ts->ts_inheritor == owner || ts->ts_inheritor == NULL);
286 ts->ts_inheritor = owner;
288 SLIST_INSERT_HEAD(&owner->l_pi_lenders, ts, ts_pichain);
289 lwp_lendpri(owner, prio);
292 lwp_lendpri(owner, prio);
296 LOCKDEBUG_BARRIER(owner->l_mutex, 1);
297 l = owner;