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