Lines Matching refs:mstype
1363 static int msg_reply_type(int mstype) in msg_reply_type() argument
1365 switch (mstype) { in msg_reply_type()
1452 static int add_to_waiters(struct dlm_lkb *lkb, int mstype, int to_nodeid) in add_to_waiters() argument
1460 (is_overlap_cancel(lkb) && (mstype == DLM_MSG_CANCEL))) { in add_to_waiters()
1466 switch (mstype) { in add_to_waiters()
1481 lkb->lkb_id, lkb->lkb_wait_type, mstype, in add_to_waiters()
1491 lkb->lkb_wait_type = mstype; in add_to_waiters()
1499 lkb->lkb_id, error, lkb->lkb_flags, mstype, in add_to_waiters()
1510 static int _remove_from_waiters(struct dlm_lkb *lkb, int mstype, in _remove_from_waiters() argument
1516 if (is_overlap_unlock(lkb) && (mstype == DLM_MSG_UNLOCK_REPLY)) { in _remove_from_waiters()
1523 if (is_overlap_cancel(lkb) && (mstype == DLM_MSG_CANCEL_REPLY)) { in _remove_from_waiters()
1533 if ((mstype == DLM_MSG_CANCEL_REPLY) && in _remove_from_waiters()
1548 if ((mstype == DLM_MSG_CONVERT_REPLY) && in _remove_from_waiters()
1570 mstype, lkb->lkb_flags); in _remove_from_waiters()
1581 lkb->lkb_id, mstype, lkb->lkb_wait_type); in _remove_from_waiters()
1597 static int remove_from_waiters(struct dlm_lkb *lkb, int mstype) in remove_from_waiters() argument
1603 error = _remove_from_waiters(lkb, mstype, NULL); in remove_from_waiters()
3533 int to_nodeid, int mstype, in _create_message() argument
3559 ms->m_type = mstype; in _create_message()
3567 int to_nodeid, int mstype, in create_message() argument
3573 switch (mstype) { in create_message()
3589 return _create_message(r->res_ls, mb_len, to_nodeid, mstype, in create_message()
3647 static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype) in send_common() argument
3655 error = add_to_waiters(lkb, mstype, to_nodeid); in send_common()
3659 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common()
3671 remove_from_waiters(lkb, msg_reply_type(mstype)); in send_common()
3803 int mstype, int rv) in send_common_reply() argument
3811 error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh); in send_common_reply()
4498 int error, mstype, result; in receive_request_reply() local
4513 mstype = lkb->lkb_wait_type; in receive_request_reply()
4524 if (mstype == DLM_MSG_LOOKUP) { in receive_request_reply()
5282 int error = 0, mstype, err, oc, ou; in dlm_recover_waiters_post() local
5299 mstype = lkb->lkb_wait_type; in dlm_recover_waiters_post()
5306 "overlap %d %d", lkb->lkb_id, lkb->lkb_remid, mstype, in dlm_recover_waiters_post()
5331 switch (mstype) { in dlm_recover_waiters_post()
5350 switch (mstype) { in dlm_recover_waiters_post()
5368 lkb->lkb_id, mstype, r->res_nodeid, in dlm_recover_waiters_post()