Lines Matching refs:lockres
70 /* "unused": the lockres has no locks, is not on the dirty list,
104 * the lockres queue's. This will figure out whether it belongs on the
146 * unhash the lockres, and
148 * It requires dlm and lockres spinlock to be taken.
184 * lockres is not in the hash now. drop the flag and wake up
266 /* lockres is not in the hash now. drop the flag and wake up
281 struct dlm_lock_resource *lockres;
289 lockres = list_entry(dlm->purge_list.next,
292 spin_lock(&lockres->spinlock);
294 purge_jiffies = lockres->last_used +
304 spin_unlock(&lockres->spinlock);
308 /* Status of the lockres *might* change so double
309 * check. If the lockres is unused, holding the dlm
312 unused = __dlm_lockres_unused(lockres);
314 (lockres->state & DLM_LOCK_RES_MIGRATING) ||
315 (lockres->inflight_assert_workers != 0)) {
318 dlm->name, lockres->lockname.len,
319 lockres->lockname.name,
320 !unused, lockres->state,
321 lockres->inflight_assert_workers);
322 list_move_tail(&lockres->purge, &dlm->purge_list);
323 spin_unlock(&lockres->spinlock);
327 dlm_lockres_get(lockres);
329 dlm_purge_lockres(dlm, lockres);
331 dlm_lockres_put(lockres);
347 * Because this function is called with the lockres
582 res = lock->lockres;
626 res = lock->lockres;
698 * calling dlm_shuffle_lists on each lockres that
710 /* peel a lockres off, remove it from the list,
723 /* lockres can be re-dirtied/re-added to the
758 /* at this point the lockres is not migrating/
759 * recovering/in-progress. we have the lockres
763 /* called while holding lockres lock */