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