Lines Matching refs:lkb_rqmode

137 	__dlm_compat_matrix[(gr)->lkb_grmode + 1][(rq)->lkb_rqmode + 1]
167 lkb->lkb_flags, lkb->lkb_status, lkb->lkb_rqmode, 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()
1306 if (lkb->lkb_rqmode < mode) in lkb_add_ordered()
1958 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock()
2041 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock_pc()
2089 lkb->lkb_rqmode = DLM_LOCK_IV; in revert_lock()
2119 if (lkb->lkb_grmode != lkb->lkb_rqmode) { in _grant_lock()
2120 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock()
2127 lkb->lkb_rqmode = DLM_LOCK_IV; in _grant_lock()
2167 if (lkb->lkb_rqmode == DLM_LOCK_IV || lkb->lkb_grmode == DLM_LOCK_IV) { in munge_demoted()
2169 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted()
2186 lkb->lkb_rqmode = DLM_LOCK_PR; in munge_altmode()
2188 lkb->lkb_rqmode = DLM_LOCK_CW; in munge_altmode()
2450 int8_t alt = 0, rqmode = lkb->lkb_rqmode; in can_be_granted()
2494 lkb->lkb_rqmode = alt; in can_be_granted()
2499 lkb->lkb_rqmode = rqmode; in can_be_granted()
2548 if (lkb->lkb_highbast < lkb->lkb_rqmode) { in grant_pending_convert()
2549 queue_bast(r, lkb, lkb->lkb_rqmode); in grant_pending_convert()
2550 lkb->lkb_highbast = lkb->lkb_rqmode; in grant_pending_convert()
2561 hi = max_t(int, lkb->lkb_rqmode, hi); in grant_pending_convert()
2563 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2588 high = max_t(int, lkb->lkb_rqmode, high); in grant_pending_wait()
2589 if (lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_wait()
2654 if ((gr->lkb_grmode == DLM_LOCK_PR && rq->lkb_rqmode == DLM_LOCK_CW) || in modes_require_bast()
2655 (gr->lkb_grmode == DLM_LOCK_CW && rq->lkb_rqmode == DLM_LOCK_PR)) { in modes_require_bast()
2661 if (gr->lkb_highbast < rq->lkb_rqmode && !modes_compat(gr, rq)) in modes_require_bast()
2676 queue_bast(r, gr, lkb->lkb_rqmode); in send_bast_queue()
2677 gr->lkb_highbast = lkb->lkb_rqmode; in send_bast_queue()
2920 lkb->lkb_rqmode = args->mode; in validate_lock_args()
3616 ms->m_rqmode = lkb->lkb_rqmode; in send_args()
3927 lkb->lkb_rqmode = ms->m_rqmode; in receive_request_args()
3951 lkb->lkb_rqmode = ms->m_rqmode; in receive_convert_args()
5105 } else if (lkb->lkb_rqmode >= lkb->lkb_grmode) { in recover_convert_waiter()
5604 lkb->lkb_rqmode = rl->rl_rqmode; in receive_rcom_lock_args()