Lines Matching defs:nodeid

91 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
163 printk(KERN_ERR "lkb: nodeid %d id %x remid %x exflags %x flags %x "
173 printk(KERN_ERR "rsb: nodeid %d master %d dir %d flags %lx first %x "
889 /* When we are the dir nodeid, we can set the master
1138 /* our rsb is not master, but the dir nodeid has sent us a
1238 * master nodeid. During normal operation (non recovery) this is only
2571 log_print("grant_pending_locks r nodeid %d", r->res_nodeid);
2641 /* set_master(r, lkb) -- set the master nodeid of a resource
2643 The purpose of this function is to set the nodeid field in the given
2644 lkb using the nodeid field in the given rsb. If the rsb's nodeid is
2646 0. If the rsb's nodeid is _not_ known, it needs to be looked up
2649 When the rsb nodeid is being looked up remotely, the initial lkb
2655 0: nodeid is set in rsb/lkb and the caller should go ahead and use it
2688 have set res_master_nodeid when dir nodeid is local, but
2717 /* confirm_master -- confirm (or deny) an rsb's master nodeid */
3195 /* set_master: sets lkb nodeid from r */
3812 int error, nodeid = le32_to_cpu(ms_in->m_header.h_nodeid);
3814 error = create_message(r, NULL, nodeid, DLM_MSG_LOOKUP_REPLY, &ms, &mh);
4313 log_error(ls, "receive_remove from %d bad nodeid %d",
4919 int nodeid)
4930 le32_to_cpu(ms->m_type), nodeid);
4942 dlm_add_requestqueue(ls, nodeid, ms);
4964 void dlm_receive_buffer(const union dlm_packet *p, int nodeid)
4978 log_print("invalid h_cmd %d from %u", hd->h_cmd, nodeid);
4982 if (le32_to_cpu(hd->h_nodeid) != nodeid) {
4984 le32_to_cpu(hd->h_nodeid), nodeid,
4994 le32_to_cpu(hd->u.h_lockspace), nodeid,
4999 dlm_send_ls_not_ready(nodeid, &p->rcom);
5008 dlm_receive_message(ls, &p->message, nodeid);
5010 dlm_receive_rcom(ls, &p->rcom, nodeid);
5013 hd->h_cmd, nodeid, le32_to_cpu(hd->u.h_lockspace));
5403 /* cache one removed nodeid to optimize the common
5408 nodeid_gone = memb->nodeid;
5501 static struct dlm_lkb *search_remid_list(struct list_head *head, int nodeid,
5507 if (lkb->lkb_nodeid == nodeid && lkb->lkb_remid == remid)
5513 static struct dlm_lkb *search_remid(struct dlm_rsb *r, int nodeid,
5518 lkb = search_remid_list(&r->res_grantqueue, nodeid, remid);
5521 lkb = search_remid_list(&r->res_convertqueue, nodeid, remid);
5524 lkb = search_remid_list(&r->res_waitqueue, nodeid, remid);
5581 to check if the rsb already has an lkb with the given remote nodeid/lkid.
6237 static void do_purge(struct dlm_ls *ls, int nodeid, int pid)
6252 static int send_purge(struct dlm_ls *ls, int nodeid, int pid)
6258 error = _create_message(ls, sizeof(struct dlm_message), nodeid,
6262 ms->m_nodeid = cpu_to_le32(nodeid);
6269 int nodeid, int pid)
6273 if (nodeid && (nodeid != dlm_our_nodeid())) {
6274 error = send_purge(ls, nodeid, pid);
6280 do_purge(ls, nodeid, pid);