Lines Matching defs:master
102 u8 new_master, u8 master);
146 * regarding master list entries and heartbeat callbacks:
149 * heartbeat, master list entries are simply attached to the
158 * the mle once an "answer" regarding the lock master has been
267 mle->master = O2NM_MAX_NODES;
696 * for this name, and we should *not* attempt to master
810 /* check master list to see if another node has started mastering it */
818 mlog(ML_ERROR, "master entry for nonexistent lock!\n");
826 * if there is a BLOCK here, but it already has a master
827 * set, we are too late. the master does not have a ref
830 if (mig || mle->master != O2NM_MAX_NODES) {
831 BUG_ON(mig && mle->master == dlm->node_num);
832 /* we arrived too late. the master does not
840 /* master is known, detach */
852 /* go ahead and try to master lock on this node */
874 * DLM_MLE_MASTER on the master list, so it's safe to add the
886 * ref at this time in the assert master handler, so we
899 "master $RECOVERY lock now\n", dlm->name);
939 if (mle->master != O2NM_MAX_NODES) {
940 /* found a master ! */
941 if (mle->master <= nodenum)
943 /* if our master request has not reached the master
945 * master will know that asserts are needed back to
948 "master is %u, keep going\n", dlm->name, namelen,
949 lockid, nodenum, mle->master);
958 mlog(0, "%s: res %.*s, Node map changed, redo the master "
978 /* master is known, detach if not already detached */
1021 /* this will cause the master to re-assert across
1038 m = mle->master;
1087 mle->master = dlm->node_num;
1094 * an assert master yet, we must sleep */
1112 mlog(0, "done waiting, master is %u\n", res->owner);
1120 mlog(0, "about to master %.*s here, this=%u\n",
1217 "master process may need to be restarted!\n");
1230 /* redo the master request, but only for the new node */
1244 mlog(0, "expected master %u died"
1268 "master this here\n",
1356 mlog(0, "node %u is the master, response=YES\n", to);
1357 mlog(0, "%s:%.*s: master node %u now knows I have a "
1360 mle->master = to;
1363 mlog(0, "node %u not master, response=NO\n", to);
1367 mlog(0, "node %u not master, response=MAYBE\n", to);
1480 // mlog(0, "node %u is the master\n", res->owner);
1489 * master this lock. */
1510 mlog(0, "node %u is master, but trying to migrate to "
1511 "node %u.\n", tmpmle->master, tmpmle->new_master);
1512 if (tmpmle->master == dlm->node_num) {
1518 /* the real master can respond on its own */
1521 } else if (tmpmle->master != DLM_LOCK_RES_OWNER_UNKNOWN) {
1523 if (tmpmle->master == dlm->node_num) {
1535 // "master lockres\n");
1584 if (tmpmle->master == dlm->node_num) {
1585 mlog(ML_ERROR, "no lockres, but an mle with this node as master!\n");
1592 tmpmle->master, tmpmle->new_master);
1593 /* real master can respond on its own */
1621 mlog(ML_ERROR, "failed to dispatch assert master work\n");
1677 mlog(0, "sending assert master to %d (%.*s)\n", to,
1702 mlog(ML_ERROR,"during assert master of %.*s to %u, "
1719 "master MLE but no lockres on %u\n",
1793 /* not an error, could be master just re-asserting */
1801 * could be master just re-asserting. */
1807 mlog(0, "master %u was found, %u should "
1885 /* should only be getting an assert from new master */
1888 "new master is %u, and old master "
1891 mle->master, namelen, name);
1922 mle->master = assert->node_idx;
1940 dlm_change_lockres_owner(dlm, res, mle->master);
1948 /* master is known, detach if not already detached.
1966 mlog(ML_ERROR, "%s:%.*s: got assert master from %u "
1976 /* the assert master message now balances the extra
1977 * ref given by the master / migration request message.
2002 mlog(0, "need to tell master to reassert\n");
2012 /* let the master know we have a reference to the lockres */
2126 "the new master will handle that.\n");
2135 mlog(0, "worker about to master %.*s here, this=%u\n",
2171 u8 master = DLM_LOCK_RES_OWNER_UNKNOWN;
2181 ret = dlm_do_master_requery(dlm, res, nodenum, &master);
2191 if (master != DLM_LOCK_RES_OWNER_UNKNOWN) {
2192 /* check to see if this master is in the recovery map */
2194 if (test_bit(master, dlm->recovery_map)) {
2199 nodenum, master);
2203 mlog(0, "%s: reco lock master is %u\n", dlm->name,
2204 master);
2577 * clear any existing master requests and
2586 * master will destroy this.
2617 /* master is known, detach if not already detached */
2636 * in the master list, and the MIGRATING flag set on
2671 * node now waits for target to do an assert master. this node
2675 * master, so it is important that my recovery finds the migration
2676 * mle and sets the master to UNKNOWN. */
2679 /* wait for new node to assert master */
2723 /* master is known, detach if not already detached */
2920 * original master calls this to free all of the dlm_lock
3020 /* this is called by the new master once all lockres
3024 u8 master, u8 new_master,
3035 migrate.master = master;
3039 /* send message to all nodes, except the master and myself */
3041 if (nodenum == master ||
3092 /* if there is an existing mle for this lockres, we now know who the master is.
3095 * we can unhash it now, set the master and wake the process. as a result,
3150 migrate->master);
3160 /* master is known, detach if not already detached */
3174 * in the master list because we know with certainty that
3175 * the master is "master". so we remove any old mle from
3176 * the list after setting it's master field, and then add
3184 u8 new_master, u8 master)
3200 if (master == dlm->node_num) {
3210 "master=%u new_master=%u // request: "
3211 "master=%u new_master=%u // "
3213 tmp->master, tmp->new_master,
3214 master, new_master,
3220 tmp->master = master;
3228 mlog(0, "%s:%.*s: master=%u, newmaster=%u, "
3229 "telling master to get ref "
3232 namelen, name, master,
3242 /* the new master will be sending an assert master for this.
3244 mle->master = master;
3309 "master\n", dead_node);
3316 mlog(0, "node %u was expected master\n", dead_node);
3339 /* clean the master list */
3356 * master. */
3364 /* The rule for MIGRATION mles is that the master
3366 * master dies. All UNKNOWN lockres' are sent to
3367 * whichever node becomes the recovery master. The new
3368 * master is responsible for determining if there is
3369 * still a master for this lockres, or if he needs to
3373 if (mle->master != dead_node &&
3382 mle->master);
3391 "%u to %u!\n", dlm->name, dead_node, mle->master,
3396 * If so, we need to drop the master lock so that we can
3438 mlog(0, "doing assert master of %.*s to all except the original node\n",
3452 mlog(0, "doing assert master of %.*s back to %u\n",
3457 mlog(0, "assert master to original master failed "
3469 /* re-dirty it on the new master */
3506 * or that a bast should be fired, because the new master will