Lines Matching refs:mstype
1361 static int msg_reply_type(int mstype) in msg_reply_type() argument
1363 switch (mstype) { in msg_reply_type()
1450 static int add_to_waiters(struct dlm_lkb *lkb, int mstype, int to_nodeid) in add_to_waiters() argument
1458 (is_overlap_cancel(lkb) && (mstype == DLM_MSG_CANCEL))) { in add_to_waiters()
1464 switch (mstype) { in add_to_waiters()
1479 lkb->lkb_id, lkb->lkb_wait_type, mstype, in add_to_waiters()
1489 lkb->lkb_wait_type = mstype; in add_to_waiters()
1497 lkb->lkb_id, error, lkb->lkb_flags, mstype, in add_to_waiters()
1508 static int _remove_from_waiters(struct dlm_lkb *lkb, int mstype, in _remove_from_waiters() argument
1514 if (is_overlap_unlock(lkb) && (mstype == DLM_MSG_UNLOCK_REPLY)) { in _remove_from_waiters()
1521 if (is_overlap_cancel(lkb) && (mstype == DLM_MSG_CANCEL_REPLY)) { in _remove_from_waiters()
1531 if ((mstype == DLM_MSG_CANCEL_REPLY) && in _remove_from_waiters()
1546 if ((mstype == DLM_MSG_CONVERT_REPLY) && in _remove_from_waiters()
1568 mstype, lkb->lkb_flags); in _remove_from_waiters()
1579 lkb->lkb_id, mstype, lkb->lkb_wait_type); in _remove_from_waiters()
1595 static int remove_from_waiters(struct dlm_lkb *lkb, int mstype) in remove_from_waiters() argument
1601 error = _remove_from_waiters(lkb, mstype, NULL); in remove_from_waiters()
3531 int to_nodeid, int mstype, in _create_message() argument
3557 ms->m_type = mstype; in _create_message()
3565 int to_nodeid, int mstype, in create_message() argument
3571 switch (mstype) { in create_message()
3587 return _create_message(r->res_ls, mb_len, to_nodeid, mstype, in create_message()
3645 static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype) in send_common() argument
3653 error = add_to_waiters(lkb, mstype, to_nodeid); in send_common()
3657 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common()
3669 remove_from_waiters(lkb, msg_reply_type(mstype)); in send_common()
3801 int mstype, int rv) in send_common_reply() argument
3809 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common_reply()
4496 int error, mstype, result; in receive_request_reply() local
4511 mstype = lkb->lkb_wait_type; in receive_request_reply()
4522 if (mstype == DLM_MSG_LOOKUP) { in receive_request_reply()
5280 int error = 0, mstype, err, oc, ou; in dlm_recover_waiters_post() local
5297 mstype = lkb->lkb_wait_type; in dlm_recover_waiters_post()
5304 "overlap %d %d", lkb->lkb_id, lkb->lkb_remid, mstype, in dlm_recover_waiters_post()
5329 switch (mstype) { in dlm_recover_waiters_post()
5348 switch (mstype) { in dlm_recover_waiters_post()
5366 lkb->lkb_id, mstype, r->res_nodeid, in dlm_recover_waiters_post()