Lines Matching refs:mstype
1686 static int msg_reply_type(int mstype) in msg_reply_type() argument
1688 switch (mstype) { in msg_reply_type()
1706 static int add_to_waiters(struct dlm_lkb *lkb, int mstype, int to_nodeid) in add_to_waiters() argument
1714 (is_overlap_cancel(lkb) && (mstype == DLM_MSG_CANCEL))) { in add_to_waiters()
1720 switch (mstype) { in add_to_waiters()
1735 lkb->lkb_id, lkb->lkb_wait_type, mstype, in add_to_waiters()
1745 lkb->lkb_wait_type = mstype; in add_to_waiters()
1752 lkb->lkb_id, error, dlm_iflags_val(lkb), mstype, in add_to_waiters()
1763 static int _remove_from_waiters(struct dlm_lkb *lkb, int mstype, in _remove_from_waiters() argument
1769 if (mstype == DLM_MSG_UNLOCK_REPLY && in _remove_from_waiters()
1776 if (mstype == DLM_MSG_CANCEL_REPLY && in _remove_from_waiters()
1786 if ((mstype == DLM_MSG_CANCEL_REPLY) && in _remove_from_waiters()
1801 if ((mstype == DLM_MSG_CONVERT_REPLY) && in _remove_from_waiters()
1822 lkb->lkb_remid, mstype, dlm_iflags_val(lkb)); in _remove_from_waiters()
1833 lkb->lkb_id, mstype, lkb->lkb_wait_type); in _remove_from_waiters()
1849 static int remove_from_waiters(struct dlm_lkb *lkb, int mstype) in remove_from_waiters() argument
1855 error = _remove_from_waiters(lkb, mstype, NULL); in remove_from_waiters()
3493 int to_nodeid, int mstype, in _create_message() argument
3517 ms->m_type = cpu_to_le32(mstype); in _create_message()
3525 int to_nodeid, int mstype, in create_message() argument
3531 switch (mstype) { in create_message()
3547 return _create_message(r->res_ls, mb_len, to_nodeid, mstype, in create_message()
3605 static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype) in send_common() argument
3613 error = add_to_waiters(lkb, mstype, to_nodeid); in send_common()
3617 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common()
3629 remove_from_waiters(lkb, msg_reply_type(mstype)); in send_common()
3760 int mstype, int rv) in send_common_reply() argument
3768 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common_reply()
4396 int error, mstype, result; in receive_request_reply() local
4411 mstype = lkb->lkb_wait_type; in receive_request_reply()
4423 if (mstype == DLM_MSG_LOOKUP) { in receive_request_reply()
5214 int error = 0, mstype, err, oc, ou; in dlm_recover_waiters_post() local
5241 mstype = lkb->lkb_wait_type; in dlm_recover_waiters_post()
5250 "overlap %d %d", lkb->lkb_id, lkb->lkb_remid, mstype, in dlm_recover_waiters_post()
5290 switch (mstype) { in dlm_recover_waiters_post()
5309 switch (mstype) { in dlm_recover_waiters_post()
5327 lkb->lkb_id, mstype, r->res_nodeid, in dlm_recover_waiters_post()
6338 int mstype, int to_nodeid) in dlm_debug_add_lkb_to_waiters() argument
6347 error = add_to_waiters(lkb, mstype, to_nodeid); in dlm_debug_add_lkb_to_waiters()