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 "
693 /* When we are the dir nodeid, we can set the master
860 /* our rsb is not master, but the dir nodeid has sent us a
960 * master nodeid. During normal operation (non recovery) this is only
2395 log_print("grant_pending_locks r nodeid %d", r->res_nodeid);
2465 /* set_master(r, lkb) -- set the master nodeid of a resource
2467 The purpose of this function is to set the nodeid field in the given
2468 lkb using the nodeid field in the given rsb. If the rsb's nodeid is
2470 0. If the rsb's nodeid is _not_ known, it needs to be looked up
2473 When the rsb nodeid is being looked up remotely, the initial lkb
2479 0: nodeid is set in rsb/lkb and the caller should go ahead and use it
2512 have set res_master_nodeid when dir nodeid is local, but
2542 /* confirm_master -- confirm (or deny) an rsb's master nodeid */
3022 /* set_master: sets lkb nodeid from r */
3651 int error, nodeid = le32_to_cpu(ms_in->m_header.h_nodeid);
3653 error = create_message(r, NULL, nodeid, DLM_MSG_LOOKUP_REPLY, &ms, &mh,
4154 log_error(ls, "receive_remove from %d bad nodeid %d",
4755 int nodeid)
4763 le32_to_cpu(ms->m_type), nodeid);
4767 dlm_add_requestqueue(ls, nodeid, ms);
4788 void dlm_receive_buffer(const union dlm_packet *p, int nodeid)
4802 log_print("invalid h_cmd %d from %u", hd->h_cmd, nodeid);
4806 if (le32_to_cpu(hd->h_nodeid) != nodeid) {
4808 le32_to_cpu(hd->h_nodeid), nodeid,
4818 le32_to_cpu(hd->u.h_lockspace), nodeid,
4823 dlm_send_ls_not_ready(nodeid, &p->rcom);
4832 dlm_receive_message(ls, &p->message, nodeid);
4834 dlm_receive_rcom(ls, &p->rcom, nodeid);
4837 hd->h_cmd, nodeid, le32_to_cpu(hd->u.h_lockspace));
5205 /* cache one removed nodeid to optimize the common
5210 nodeid_gone = memb->nodeid;
5313 static struct dlm_lkb *search_remid_list(struct list_head *head, int nodeid,
5319 if (lkb->lkb_nodeid == nodeid && lkb->lkb_remid == remid)
5325 static struct dlm_lkb *search_remid(struct dlm_rsb *r, int nodeid,
5330 lkb = search_remid_list(&r->res_grantqueue, nodeid, remid);
5333 lkb = search_remid_list(&r->res_convertqueue, nodeid, remid);
5336 lkb = search_remid_list(&r->res_waitqueue, nodeid, remid);
5388 to check if the rsb already has an lkb with the given remote nodeid/lkid.
6044 static void do_purge(struct dlm_ls *ls, int nodeid, int pid)
6059 static int send_purge(struct dlm_ls *ls, int nodeid, int pid)
6065 error = _create_message(ls, sizeof(struct dlm_message), nodeid,
6069 ms->m_nodeid = cpu_to_le32(nodeid);
6076 int nodeid, int pid)
6080 if (nodeid && (nodeid != dlm_our_nodeid())) {
6081 error = send_purge(ls, nodeid, pid);
6087 do_purge(ls, nodeid, pid);