Lines Matching refs:lockres
72 /* "unused": the lockres has no locks, is not on the dirty list,
106 * the lockres queue's. This will figure out whether it belongs on the
148 * unhash the lockres, and
150 * It requires dlm and lockres spinlock to be taken.
186 * lockres is not in the hash now. drop the flag and wake up
268 /* lockres is not in the hash now. drop the flag and wake up
283 struct dlm_lock_resource *lockres;
291 lockres = list_entry(dlm->purge_list.next,
294 spin_lock(&lockres->spinlock);
296 purge_jiffies = lockres->last_used +
306 spin_unlock(&lockres->spinlock);
310 /* Status of the lockres *might* change so double
311 * check. If the lockres is unused, holding the dlm
314 unused = __dlm_lockres_unused(lockres);
316 (lockres->state & DLM_LOCK_RES_MIGRATING) ||
317 (lockres->inflight_assert_workers != 0)) {
320 dlm->name, lockres->lockname.len,
321 lockres->lockname.name,
322 !unused, lockres->state,
323 lockres->inflight_assert_workers);
324 list_move_tail(&lockres->purge, &dlm->purge_list);
325 spin_unlock(&lockres->spinlock);
329 dlm_lockres_get(lockres);
331 dlm_purge_lockres(dlm, lockres);
333 dlm_lockres_put(lockres);
349 * Because this function is called with the lockres
584 res = lock->lockres;
628 res = lock->lockres;
700 * calling dlm_shuffle_lists on each lockres that
712 /* peel a lockres off, remove it from the list,
725 /* lockres can be re-dirtied/re-added to the
760 /* at this point the lockres is not migrating/
761 * recovering/in-progress. we have the lockres
765 /* called while holding lockres lock */