Lines Matching refs:tmpres
706 struct dlm_lock_resource *tmpres=NULL, *res=NULL; in dlm_get_lock_resource() local
724 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); in dlm_get_lock_resource()
725 if (tmpres) { in dlm_get_lock_resource()
727 spin_lock(&tmpres->spinlock); in dlm_get_lock_resource()
734 if (hlist_unhashed(&tmpres->hash_node)) { in dlm_get_lock_resource()
735 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
736 dlm_lockres_put(tmpres); in dlm_get_lock_resource()
737 tmpres = NULL; in dlm_get_lock_resource()
742 if (tmpres->owner == DLM_LOCK_RES_OWNER_UNKNOWN) { in dlm_get_lock_resource()
743 __dlm_wait_on_lockres(tmpres); in dlm_get_lock_resource()
744 BUG_ON(tmpres->owner == DLM_LOCK_RES_OWNER_UNKNOWN); in dlm_get_lock_resource()
745 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
746 dlm_lockres_put(tmpres); in dlm_get_lock_resource()
747 tmpres = NULL; in dlm_get_lock_resource()
752 if (tmpres->state & DLM_LOCK_RES_DROPPING_REF) { in dlm_get_lock_resource()
753 BUG_ON(tmpres->owner == dlm->node_num); in dlm_get_lock_resource()
754 __dlm_wait_on_lockres_flags(tmpres, in dlm_get_lock_resource()
756 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
757 dlm_lockres_put(tmpres); in dlm_get_lock_resource()
758 tmpres = NULL; in dlm_get_lock_resource()
763 dlm_lockres_grab_inflight_ref(dlm, tmpres); in dlm_get_lock_resource()
765 spin_unlock(&tmpres->spinlock); in dlm_get_lock_resource()
778 res = tmpres; in dlm_get_lock_resource()