Lines Matching refs:lkb_rqmode

136 	__dlm_compat_matrix[(gr)->lkb_grmode + 1][(rq)->lkb_rqmode + 1]
166 dlm_iflags_val(lkb), 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()
1325 if (iter->lkb_rqmode < mode) { in lkb_add_ordered()
1730 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock()
1813 b = dlm_lvb_operations[lkb->lkb_grmode + 1][lkb->lkb_rqmode + 1]; in set_lvb_lock_pc()
1861 lkb->lkb_rqmode = DLM_LOCK_IV; in revert_lock()
1891 if (lkb->lkb_grmode != lkb->lkb_rqmode) { in _grant_lock()
1892 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock()
1899 lkb->lkb_rqmode = DLM_LOCK_IV; in _grant_lock()
1939 if (lkb->lkb_rqmode == DLM_LOCK_IV || lkb->lkb_grmode == DLM_LOCK_IV) { in munge_demoted()
1941 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted()
1958 lkb->lkb_rqmode = DLM_LOCK_PR; in munge_altmode()
1960 lkb->lkb_rqmode = DLM_LOCK_CW; in munge_altmode()
2222 int8_t alt = 0, rqmode = lkb->lkb_rqmode; in can_be_granted()
2266 lkb->lkb_rqmode = alt; in can_be_granted()
2271 lkb->lkb_rqmode = rqmode; in can_be_granted()
2320 if (lkb->lkb_highbast < lkb->lkb_rqmode) { in grant_pending_convert()
2321 queue_bast(r, lkb, lkb->lkb_rqmode); in grant_pending_convert()
2322 lkb->lkb_highbast = lkb->lkb_rqmode; in grant_pending_convert()
2333 hi = max_t(int, lkb->lkb_rqmode, hi); in grant_pending_convert()
2335 if (cw && lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_convert()
2360 high = max_t(int, lkb->lkb_rqmode, high); in grant_pending_wait()
2361 if (lkb->lkb_rqmode == DLM_LOCK_CW) in grant_pending_wait()
2426 if ((gr->lkb_grmode == DLM_LOCK_PR && rq->lkb_rqmode == DLM_LOCK_CW) || in modes_require_bast()
2427 (gr->lkb_grmode == DLM_LOCK_CW && rq->lkb_rqmode == DLM_LOCK_PR)) { in modes_require_bast()
2433 if (gr->lkb_highbast < rq->lkb_rqmode && !modes_compat(gr, rq)) in modes_require_bast()
2448 queue_bast(r, gr, lkb->lkb_rqmode); in send_bast_queue()
2449 gr->lkb_highbast = lkb->lkb_rqmode; in send_bast_queue()
2689 lkb->lkb_rqmode = args->mode; in validate_lock_args()
3413 ms->m_rqmode = cpu_to_le32(lkb->lkb_rqmode); in send_args()
3730 lkb->lkb_rqmode = le32_to_cpu(ms->m_rqmode); in receive_request_args()
3754 lkb->lkb_rqmode = le32_to_cpu(ms->m_rqmode); in receive_convert_args()
4859 } else if (lkb->lkb_rqmode >= lkb->lkb_grmode) { in recover_convert_waiter()
5355 lkb->lkb_rqmode = rl->rl_rqmode; in receive_rcom_lock_args()