Lines Matching refs:master
56 u8 flags, u8 master);
113 u8 master)
117 dlm->name, dlm->reco.new_master, master);
118 dlm->reco.new_master = master;
220 * 3) once a new master is chosen, everyone scans all locks
223 * 5) the new master collects up all of secondary lock queue info
227 * 7) once the new master has run all its locks, it sends a ALLDONE!
231 * 9) once the new master gets responses from everyone, he unlocks
242 mlog(ML_NOTICE, "%s(%d): recovery info, state=%s, dead=%u, master=%u\n",
314 /* returns true when the recovery master has contacted us */
384 * recovering a dead node (as the new master or not) and clear
401 "state=%d, master=%u, dead=%u\n",
450 /* check to see if the new master has died */
453 mlog(0, "new master %u died while recovering %u!\n",
495 /* choose a new master, returns 0 if this node
496 * is the master, -EEXIST if it's another node.
497 * this does not return until a new master is chosen
504 mlog(0, "another node will master this recovery session.\n");
552 /* we have become recovery master. there is no escaping
693 /* Set this flag on recovery master to avoid
887 mlog(0, "%s: recovery worker started, dead=%u, master=%u\n",
892 /* worker could have been created before the recovery master
896 "recovery master %u died, thread=(dead=%u,mas=%u)"
902 "master=%u), request(dead=%u, master=%u)\n",
1114 orig_master = mres->master;
1167 u8 flags, u8 master)
1177 mres->master = master;
1373 "lockres %.*s, master %u\n",
1375 mres->lockname, mres->master);
1382 real_master = mres->master;
1384 /* cannot migrate a lockres with no master */
1390 "recovery" : "migration", mres->master);
1498 /* drop this either when master requery finds a different master
1501 if (mres->master == DLM_LOCK_RES_OWNER_UNKNOWN) {
1502 /* migration cannot have an unknown master */
1576 mlog(0, "master needs to respond to sender "
1593 ret = dlm_finish_migration(dlm, res, mres->master);
1622 * at this point we need to requery the master. we
1626 * the master to the new_master. the old master
1630 * that the master is new_master, or that the master
1634 * if any node comes back with a valid master, check
1635 * to see if that master is the one that we are
1660 mlog(0, "lock master is %u\n", *real_master);
1695 mlog(0, "node %u responded to master requery with %u\n",
1713 int master = DLM_LOCK_RES_OWNER_UNKNOWN;
1720 return master;
1729 master = res->owner;
1730 if (master == dlm->node_num) {
1747 /* put.. incase we are not the master */
1756 return master;
1776 * Before attempting the migrate, the master has marked the lockres as
1782 * flag to be dropped, then recheck the master.
1785 * well. For the lock case, there is no way a lock can be on the master
1790 * updated to match the one sent by the master. Any messages sent back
1791 * from the master before the MIGRATING flag will bring the lock properly
1905 * to match the master here */
2096 * (the master is dead). */
2103 * new master. note that the dlm_unlock
2108 * recovery master. */
2119 * new master */
2135 * sets the res->owner to the new master.
2267 /* this node is the lockres master:
2344 * 1) if the dead node was the master, move the lockres
2349 * 2) if this node was the master, remove all locks from
2399 "dropping its ref when master died. "
2434 mlog(0, "%s: recovery master %d just died\n",
2440 mlog(0, "%s: dead master %d had reached "
2547 * master will not stop attempting this until either:
2548 * a) this node gets the EX (and becomes the recovery master),
2551 * so each time a recovery master is needed, the entire cluster
2552 * will sync at this point. if the new master dies, that will
2577 * just became the reco master */
2593 mlog(ML_ERROR, "%s: new master is %u "
2602 /* if this node has actually become the recovery master,
2603 * set the master and send the messages to begin recovery */
2638 /* another node is master. wait on
2645 mlog(0, "%s: reco master taking awhile\n",
2649 /* another node has informed this one that it is reco master */
2650 mlog(0, "%s: reco master %u is ready to recover %u\n",
2654 mlog(0, "dlm=%s dlmlock says master node died (this=%u)\n",
2803 /* may not have seen the new master as dead yet */
2814 mlog(0, "recovery master %u sees %u as dead, but this "
2919 "%u is supposed to be the new master, dead=%u\n",
2935 "new master %u for dead node %u, but "
2947 "new master %u for dead node %u, but "
2960 mlog(0, "%s: recovery done, reco master was %u, dead now %u, master now %u\n",