Lines Matching refs:lkb_grmode
137 __dlm_compat_matrix[(gr)->lkb_grmode + 1][(rq)->lkb_rqmode + 1]
168 lkb->lkb_grmode, lkb->lkb_wait_type, lkb->lkb_wait_nodeid, in dlm_print_lkb()
263 if ((lkb->lkb_grmode==DLM_LOCK_PR && lkb->lkb_rqmode==DLM_LOCK_CW) || in middle_conversion()
264 (lkb->lkb_rqmode==DLM_LOCK_PR && lkb->lkb_grmode==DLM_LOCK_CW)) in middle_conversion()
271 return (!middle_conversion(lkb) && lkb->lkb_rqmode < lkb->lkb_grmode); in down_conversion()
313 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); in queue_cast()
1213 lkb->lkb_grmode = DLM_LOCK_IV; in _create_lkb()
1370 lkb->lkb_grmode); in add_lkb()
1923 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock()
1968 if (lkb->lkb_grmode < DLM_LOCK_PW) in set_lvb_unlock()
2006 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock_pc()
2029 lkb->lkb_grmode = DLM_LOCK_IV; in _remove_lock()
2065 lkb->lkb_grmode = DLM_LOCK_IV; in revert_lock()
2084 if (lkb->lkb_grmode != lkb->lkb_rqmode) { in _grant_lock()
2085 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock()
2132 if (lkb->lkb_rqmode == DLM_LOCK_IV || lkb->lkb_grmode == DLM_LOCK_IV) { in munge_demoted()
2134 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted()
2138 lkb->lkb_grmode = DLM_LOCK_NL; in munge_demoted()
2268 int8_t conv = (lkb->lkb_grmode != DLM_LOCK_IV); in _can_be_granted()
2416 int8_t is_convert = (lkb->lkb_grmode != DLM_LOCK_IV); in can_be_granted()
2434 lkb->lkb_grmode = DLM_LOCK_NL; in can_be_granted()
2569 if (gr->lkb_grmode == DLM_LOCK_PR && cw) { in lock_requires_bast()
2576 !__dlm_compat_matrix[gr->lkb_grmode+1][high+1]) in lock_requires_bast()
2608 lkb->lkb_grmode == DLM_LOCK_PR) in grant_pending_locks()
2619 if ((gr->lkb_grmode == DLM_LOCK_PR && rq->lkb_rqmode == DLM_LOCK_CW) || in modes_require_bast()
2620 (gr->lkb_grmode == DLM_LOCK_CW && rq->lkb_rqmode == DLM_LOCK_PR)) { in modes_require_bast()
2887 !__quecvt_compat_matrix[lkb->lkb_grmode+1][args->mode+1]) in validate_lock_args()
3632 ms->m_grmode = cpu_to_le32(lkb->lkb_grmode); in send_args()
3944 lkb->lkb_grmode = DLM_LOCK_IV; in receive_request_args()
5137 lkb->lkb_grmode = DLM_LOCK_IV; in recover_convert_waiter()
5141 } else if (lkb->lkb_rqmode >= lkb->lkb_grmode) { in recover_convert_waiter()
5225 if (lkb->lkb_grmode == DLM_LOCK_IV) in dlm_recover_waiters_pre()
5230 if (lkb->lkb_grmode == DLM_LOCK_IV) in dlm_recover_waiters_pre()
5463 (lkb->lkb_grmode >= DLM_LOCK_PW)) { in purge_dead_list()
5641 lkb->lkb_grmode = rl->rl_grmode; in receive_rcom_lock_args()
5665 lkb->lkb_grmode = DLM_LOCK_IV; in receive_rcom_lock_args()
5995 if (iter->lkb_grmode != mode) { in dlm_user_adopt_orphan()