Lines Matching defs:master
104 u8 new_master, u8 master);
148 * regarding master list entries and heartbeat callbacks:
151 * heartbeat, master list entries are simply attached to the
160 * the mle once an "answer" regarding the lock master has been
269 mle->master = O2NM_MAX_NODES;
698 * for this name, and we should *not* attempt to master
812 /* check master list to see if another node has started mastering it */
820 mlog(ML_ERROR, "master entry for nonexistent lock!\n");
828 * if there is a BLOCK here, but it already has a master
829 * set, we are too late. the master does not have a ref
832 if (mig || mle->master != O2NM_MAX_NODES) {
833 BUG_ON(mig && mle->master == dlm->node_num);
834 /* we arrived too late. the master does not
842 /* master is known, detach */
854 /* go ahead and try to master lock on this node */
876 * DLM_MLE_MASTER on the master list, so it's safe to add the
888 * ref at this time in the assert master handler, so we
901 "master $RECOVERY lock now\n", dlm->name);
941 if (mle->master != O2NM_MAX_NODES) {
942 /* found a master ! */
943 if (mle->master <= nodenum)
945 /* if our master request has not reached the master
947 * master will know that asserts are needed back to
950 "master is %u, keep going\n", dlm->name, namelen,
951 lockid, nodenum, mle->master);
960 mlog(0, "%s: res %.*s, Node map changed, redo the master "
980 /* master is known, detach if not already detached */
1023 /* this will cause the master to re-assert across
1040 m = mle->master;
1089 mle->master = dlm->node_num;
1096 * an assert master yet, we must sleep */
1114 mlog(0, "done waiting, master is %u\n", res->owner);
1122 mlog(0, "about to master %.*s here, this=%u\n",
1219 "master process may need to be restarted!\n");
1232 /* redo the master request, but only for the new node */
1246 mlog(0, "expected master %u died"
1270 "master this here\n",
1358 mlog(0, "node %u is the master, response=YES\n", to);
1359 mlog(0, "%s:%.*s: master node %u now knows I have a "
1362 mle->master = to;
1365 mlog(0, "node %u not master, response=NO\n", to);
1369 mlog(0, "node %u not master, response=MAYBE\n", to);
1482 // mlog(0, "node %u is the master\n", res->owner);
1491 * master this lock. */
1512 mlog(0, "node %u is master, but trying to migrate to "
1513 "node %u.\n", tmpmle->master, tmpmle->new_master);
1514 if (tmpmle->master == dlm->node_num) {
1520 /* the real master can respond on its own */
1523 } else if (tmpmle->master != DLM_LOCK_RES_OWNER_UNKNOWN) {
1525 if (tmpmle->master == dlm->node_num) {
1537 // "master lockres\n");
1586 if (tmpmle->master == dlm->node_num) {
1587 mlog(ML_ERROR, "no lockres, but an mle with this node as master!\n");
1594 tmpmle->master, tmpmle->new_master);
1595 /* real master can respond on its own */
1623 mlog(ML_ERROR, "failed to dispatch assert master work\n");
1679 mlog(0, "sending assert master to %d (%.*s)\n", to,
1704 mlog(ML_ERROR,"during assert master of %.*s to %u, "
1721 "master MLE but no lockres on %u\n",
1795 /* not an error, could be master just re-asserting */
1803 * could be master just re-asserting. */
1809 mlog(0, "master %u was found, %u should "
1887 /* should only be getting an assert from new master */
1890 "new master is %u, and old master "
1893 mle->master, namelen, name);
1924 mle->master = assert->node_idx;
1942 dlm_change_lockres_owner(dlm, res, mle->master);
1950 /* master is known, detach if not already detached.
1968 mlog(ML_ERROR, "%s:%.*s: got assert master from %u "
1978 /* the assert master message now balances the extra
1979 * ref given by the master / migration request message.
2004 mlog(0, "need to tell master to reassert\n");
2014 /* let the master know we have a reference to the lockres */
2128 "the new master will handle that.\n");
2137 mlog(0, "worker about to master %.*s here, this=%u\n",
2173 u8 master = DLM_LOCK_RES_OWNER_UNKNOWN;
2183 ret = dlm_do_master_requery(dlm, res, nodenum, &master);
2193 if (master != DLM_LOCK_RES_OWNER_UNKNOWN) {
2194 /* check to see if this master is in the recovery map */
2196 if (test_bit(master, dlm->recovery_map)) {
2201 nodenum, master);
2205 mlog(0, "%s: reco lock master is %u\n", dlm->name,
2206 master);
2579 * clear any existing master requests and
2588 * master will destroy this.
2619 /* master is known, detach if not already detached */
2638 * in the master list, and the MIGRATING flag set on
2673 * node now waits for target to do an assert master. this node
2677 * master, so it is important that my recovery finds the migration
2678 * mle and sets the master to UNKNOWN. */
2681 /* wait for new node to assert master */
2725 /* master is known, detach if not already detached */
2922 * original master calls this to free all of the dlm_lock
3022 /* this is called by the new master once all lockres
3026 u8 master, u8 new_master,
3037 migrate.master = master;
3041 /* send message to all nodes, except the master and myself */
3043 if (nodenum == master ||
3094 /* if there is an existing mle for this lockres, we now know who the master is.
3097 * we can unhash it now, set the master and wake the process. as a result,
3152 migrate->master);
3162 /* master is known, detach if not already detached */
3176 * in the master list because we know with certainty that
3177 * the master is "master". so we remove any old mle from
3178 * the list after setting it's master field, and then add
3186 u8 new_master, u8 master)
3202 if (master == dlm->node_num) {
3212 "master=%u new_master=%u // request: "
3213 "master=%u new_master=%u // "
3215 tmp->master, tmp->new_master,
3216 master, new_master,
3222 tmp->master = master;
3230 mlog(0, "%s:%.*s: master=%u, newmaster=%u, "
3231 "telling master to get ref "
3234 namelen, name, master,
3244 /* the new master will be sending an assert master for this.
3246 mle->master = master;
3311 "master\n", dead_node);
3318 mlog(0, "node %u was expected master\n", dead_node);
3341 /* clean the master list */
3358 * master. */
3366 /* The rule for MIGRATION mles is that the master
3368 * master dies. All UNKNOWN lockres' are sent to
3369 * whichever node becomes the recovery master. The new
3370 * master is responsible for determining if there is
3371 * still a master for this lockres, or if he needs to
3375 if (mle->master != dead_node &&
3384 mle->master);
3393 "%u to %u!\n", dlm->name, dead_node, mle->master,
3398 * If so, we need to drop the master lock so that we can
3440 mlog(0, "doing assert master of %.*s to all except the original node\n",
3454 mlog(0, "doing assert master of %.*s back to %u\n",
3459 mlog(0, "assert master to original master failed "
3471 /* re-dirty it on the new master */
3508 * or that a bast should be fired, because the new master will