Lines Matching refs:master

54 					u8 flags, u8 master);
111 u8 master)
115 dlm->name, dlm->reco.new_master, master);
116 dlm->reco.new_master = master;
211 * 3) once a new master is chosen, everyone scans all locks
214 * 5) the new master collects up all of secondary lock queue info
218 * 7) once the new master has run all its locks, it sends a ALLDONE!
222 * 9) once the new master gets responses from everyone, he unlocks
233 mlog(ML_NOTICE, "%s(%d): recovery info, state=%s, dead=%u, master=%u\n",
305 /* returns true when the recovery master has contacted us */
375 * recovering a dead node (as the new master or not) and clear
392 "state=%d, master=%u, dead=%u\n",
441 /* check to see if the new master has died */
444 mlog(0, "new master %u died while recovering %u!\n",
486 /* choose a new master, returns 0 if this node
487 * is the master, -EEXIST if it's another node.
488 * this does not return until a new master is chosen
495 mlog(0, "another node will master this recovery session.\n");
543 /* we have become recovery master. there is no escaping
684 /* Set this flag on recovery master to avoid
878 mlog(0, "%s: recovery worker started, dead=%u, master=%u\n",
883 /* worker could have been created before the recovery master
887 "recovery master %u died, thread=(dead=%u,mas=%u)"
893 "master=%u), request(dead=%u, master=%u)\n",
1105 orig_master = mres->master;
1158 u8 flags, u8 master)
1168 mres->master = master;
1364 "lockres %.*s, master %u\n",
1366 mres->lockname, mres->master);
1373 real_master = mres->master;
1375 /* cannot migrate a lockres with no master */
1381 "recovery" : "migration", mres->master);
1489 /* drop this either when master requery finds a different master
1492 if (mres->master == DLM_LOCK_RES_OWNER_UNKNOWN) {
1493 /* migration cannot have an unknown master */
1567 mlog(0, "master needs to respond to sender "
1584 ret = dlm_finish_migration(dlm, res, mres->master);
1613 * at this point we need to requery the master. we
1617 * the master to the new_master. the old master
1621 * that the master is new_master, or that the master
1625 * if any node comes back with a valid master, check
1626 * to see if that master is the one that we are
1651 mlog(0, "lock master is %u\n", *real_master);
1686 mlog(0, "node %u responded to master requery with %u\n",
1704 int master = DLM_LOCK_RES_OWNER_UNKNOWN;
1711 return master;
1720 master = res->owner;
1721 if (master == dlm->node_num) {
1738 /* put.. incase we are not the master */
1747 return master;
1767 * Before attempting the migrate, the master has marked the lockres as
1773 * flag to be dropped, then recheck the master.
1776 * well. For the lock case, there is no way a lock can be on the master
1781 * updated to match the one sent by the master. Any messages sent back
1782 * from the master before the MIGRATING flag will bring the lock properly
1896 * to match the master here */
2087 * (the master is dead). */
2094 * new master. note that the dlm_unlock
2099 * recovery master. */
2110 * new master */
2126 * sets the res->owner to the new master.
2258 /* this node is the lockres master:
2335 * 1) if the dead node was the master, move the lockres
2340 * 2) if this node was the master, remove all locks from
2390 "dropping its ref when master died. "
2425 mlog(0, "%s: recovery master %d just died\n",
2431 mlog(0, "%s: dead master %d had reached "
2538 * master will not stop attempting this until either:
2539 * a) this node gets the EX (and becomes the recovery master),
2542 * so each time a recovery master is needed, the entire cluster
2543 * will sync at this point. if the new master dies, that will
2568 * just became the reco master */
2584 mlog(ML_ERROR, "%s: new master is %u "
2593 /* if this node has actually become the recovery master,
2594 * set the master and send the messages to begin recovery */
2629 /* another node is master. wait on
2636 mlog(0, "%s: reco master taking awhile\n",
2640 /* another node has informed this one that it is reco master */
2641 mlog(0, "%s: reco master %u is ready to recover %u\n",
2645 mlog(0, "dlm=%s dlmlock says master node died (this=%u)\n",
2793 /* may not have seen the new master as dead yet */
2804 mlog(0, "recovery master %u sees %u as dead, but this "
2909 "%u is supposed to be the new master, dead=%u\n",
2925 "new master %u for dead node %u, but "
2937 "new master %u for dead node %u, but "
2950 mlog(0, "%s: recovery done, reco master was %u, dead now %u, master now %u\n",