Lines Matching defs:tmpres
708 struct dlm_lock_resource *tmpres=NULL, *res=NULL;
726 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash);
727 if (tmpres) {
729 spin_lock(&tmpres->spinlock);
736 if (hlist_unhashed(&tmpres->hash_node)) {
737 spin_unlock(&tmpres->spinlock);
738 dlm_lockres_put(tmpres);
739 tmpres = NULL;
744 if (tmpres->owner == DLM_LOCK_RES_OWNER_UNKNOWN) {
745 __dlm_wait_on_lockres(tmpres);
746 BUG_ON(tmpres->owner == DLM_LOCK_RES_OWNER_UNKNOWN);
747 spin_unlock(&tmpres->spinlock);
748 dlm_lockres_put(tmpres);
749 tmpres = NULL;
754 if (tmpres->state & DLM_LOCK_RES_DROPPING_REF) {
755 BUG_ON(tmpres->owner == dlm->node_num);
756 __dlm_wait_on_lockres_flags(tmpres,
758 spin_unlock(&tmpres->spinlock);
759 dlm_lockres_put(tmpres);
760 tmpres = NULL;
765 dlm_lockres_grab_inflight_ref(dlm, tmpres);
767 spin_unlock(&tmpres->spinlock);
780 res = tmpres;