Lines Matching refs:lkb_grmode
135 __dlm_compat_matrix[(gr)->lkb_grmode + 1][(rq)->lkb_rqmode + 1]
166 lkb->lkb_grmode, lkb->lkb_wait_type, lkb->lkb_wait_nodeid, in dlm_print_lkb()
261 if ((lkb->lkb_grmode==DLM_LOCK_PR && lkb->lkb_rqmode==DLM_LOCK_CW) || in middle_conversion()
262 (lkb->lkb_rqmode==DLM_LOCK_PR && lkb->lkb_grmode==DLM_LOCK_CW)) in middle_conversion()
269 return (!middle_conversion(lkb) && lkb->lkb_rqmode < lkb->lkb_grmode); in down_conversion()
309 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); in queue_cast()
1191 lkb->lkb_grmode = DLM_LOCK_IV; in create_lkb()
1332 lkb->lkb_grmode); in add_lkb()
1956 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock()
2001 if (lkb->lkb_grmode < DLM_LOCK_PW) in set_lvb_unlock()
2039 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock_pc()
2062 lkb->lkb_grmode = DLM_LOCK_IV; in _remove_lock()
2098 lkb->lkb_grmode = DLM_LOCK_IV; in revert_lock()
2117 if (lkb->lkb_grmode != lkb->lkb_rqmode) { in _grant_lock()
2118 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock()
2165 if (lkb->lkb_rqmode == DLM_LOCK_IV || lkb->lkb_grmode == DLM_LOCK_IV) { in munge_demoted()
2167 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted()
2171 lkb->lkb_grmode = DLM_LOCK_NL; in munge_demoted()
2301 int8_t conv = (lkb->lkb_grmode != DLM_LOCK_IV); in _can_be_granted()
2449 int8_t is_convert = (lkb->lkb_grmode != DLM_LOCK_IV); in can_be_granted()
2467 lkb->lkb_grmode = DLM_LOCK_NL; in can_be_granted()
2602 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2609 !__dlm_compat_matrix[gr->lkb_grmode+1][high+1]) in lock_requires_bast()
2641 lkb->lkb_grmode == DLM_LOCK_PR) in grant_pending_locks()
2652 if ((gr->lkb_grmode == DLM_LOCK_PR && rq->lkb_rqmode == DLM_LOCK_CW) || in modes_require_bast()
2653 (gr->lkb_grmode == DLM_LOCK_CW && rq->lkb_rqmode == DLM_LOCK_PR)) { in modes_require_bast()
2909 !__quecvt_compat_matrix[lkb->lkb_grmode+1][args->mode+1]) in validate_lock_args()
3613 ms->m_grmode = lkb->lkb_grmode; in send_args()
3924 lkb->lkb_grmode = DLM_LOCK_IV; in receive_request_args()
5099 lkb->lkb_grmode = DLM_LOCK_IV; in recover_convert_waiter()
5103 } else if (lkb->lkb_rqmode >= lkb->lkb_grmode) { in recover_convert_waiter()
5187 if (lkb->lkb_grmode == DLM_LOCK_IV) in dlm_recover_waiters_pre()
5192 if (lkb->lkb_grmode == DLM_LOCK_IV) in dlm_recover_waiters_pre()
5425 (lkb->lkb_grmode >= DLM_LOCK_PW)) { in purge_dead_list()
5603 lkb->lkb_grmode = rl->rl_grmode; in receive_rcom_lock_args()
5627 lkb->lkb_grmode = DLM_LOCK_IV; in receive_rcom_lock_args()
5926 if (iter->lkb_grmode != mode) { in dlm_user_adopt_orphan()