Lines Matching defs:nodeid
89 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
162 printk(KERN_ERR "lkb: nodeid %d id %x remid %x exflags %x flags %x "
172 printk(KERN_ERR "rsb: nodeid %d master %d dir %d flags %lx first %x "
699 /* When we are the dir nodeid, we can set the master
865 /* our rsb is not master, but the dir nodeid has sent us a
883 * master nodeid. During normal operation (non recovery) this is only
1378 static int nodeid_warned(int nodeid, int num_nodes, int *warned)
1384 warned[i] = nodeid;
1387 if (warned[i] == nodeid)
2621 log_print("grant_pending_locks r nodeid %d", r->res_nodeid);
2691 /* set_master(r, lkb) -- set the master nodeid of a resource
2693 The purpose of this function is to set the nodeid field in the given
2694 lkb using the nodeid field in the given rsb. If the rsb's nodeid is
2696 0. If the rsb's nodeid is _not_ known, it needs to be looked up
2699 When the rsb nodeid is being looked up remotely, the initial lkb
2705 0: nodeid is set in rsb/lkb and the caller should go ahead and use it
2738 have set res_master_nodeid when dir nodeid is local, but
2770 /* confirm_master -- confirm (or deny) an rsb's master nodeid */
3232 /* set_master: sets lkb nodeid from r */
3848 int error, nodeid = ms_in->m_header.h_nodeid;
3850 error = create_message(r, NULL, nodeid, DLM_MSG_LOOKUP_REPLY, &ms, &mh);
4157 node would continue returning our nodeid until our send_remove
4418 log_error(ls, "receive_remove from %d bad nodeid %d",
5001 int nodeid)
5009 ms->m_type, nodeid);
5013 dlm_add_requestqueue(ls, nodeid, ms);
5034 void dlm_receive_buffer(union dlm_packet *p, int nodeid)
5050 log_print("invalid h_cmd %d from %u", hd->h_cmd, nodeid);
5054 if (hd->h_nodeid != nodeid) {
5056 hd->h_nodeid, nodeid, hd->h_lockspace);
5065 hd->h_lockspace, nodeid, hd->h_cmd, type);
5069 dlm_send_ls_not_ready(nodeid, &p->rcom);
5078 dlm_receive_message(ls, &p->message, nodeid);
5080 dlm_receive_rcom(ls, &p->rcom, nodeid);
5452 /* cache one removed nodeid to optimize the common
5457 nodeid_gone = memb->nodeid;
5560 static struct dlm_lkb *search_remid_list(struct list_head *head, int nodeid,
5566 if (lkb->lkb_nodeid == nodeid && lkb->lkb_remid == remid)
5572 static struct dlm_lkb *search_remid(struct dlm_rsb *r, int nodeid,
5577 lkb = search_remid_list(&r->res_grantqueue, nodeid, remid);
5580 lkb = search_remid_list(&r->res_convertqueue, nodeid, remid);
5583 lkb = search_remid_list(&r->res_waitqueue, nodeid, remid);
5635 to check if the rsb already has an lkb with the given remote nodeid/lkid.
6271 static void do_purge(struct dlm_ls *ls, int nodeid, int pid)
6286 static int send_purge(struct dlm_ls *ls, int nodeid, int pid)
6292 error = _create_message(ls, sizeof(struct dlm_message), nodeid,
6296 ms->m_nodeid = nodeid;
6303 int nodeid, int pid)
6307 if (nodeid && (nodeid != dlm_our_nodeid())) {
6308 error = send_purge(ls, nodeid, pid);
6314 do_purge(ls, nodeid, pid);