Lines Matching refs:state
242 mlog(ML_NOTICE, "%s(%d): recovery info, state=%s, dead=%u, master=%u\n",
244 dlm->reco.state & DLM_RECO_STATE_ACTIVE ? "ACTIVE" : "inactive",
249 switch (ndata->state) {
275 mlog(ML_NOTICE, "%s: reco state, node %u, state=%s\n",
383 * the dlm recovery thread will set this state when it begins
385 * the state and wake as soon as all affected lock resources have
391 in_recovery = !!(dlm->reco.state & DLM_RECO_STATE_ACTIVE);
401 "state=%d, master=%u, dead=%u\n",
403 dlm->reco.state, dlm->reco.new_master,
412 BUG_ON(dlm->reco.state & DLM_RECO_STATE_ACTIVE);
415 dlm->reco.state |= DLM_RECO_STATE_ACTIVE;
421 BUG_ON(!(dlm->reco.state & DLM_RECO_STATE_ACTIVE));
422 dlm->reco.state &= ~DLM_RECO_STATE_ACTIVE;
534 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;
565 BUG_ON(ndata->state != DLM_RECO_NODE_DATA_INIT);
566 ndata->state = DLM_RECO_NODE_DATA_REQUESTING;
572 ndata->state = DLM_RECO_NODE_DATA_DONE;
584 ndata->state = DLM_RECO_NODE_DATA_DEAD;
586 * with the network state. */
608 switch (ndata->state) {
622 ndata->state = DLM_RECO_NODE_DATA_REQUESTED;
652 mlog(0, "checking recovery state of node %u\n",
654 switch (ndata->state) {
657 mlog(ML_ERROR, "bad ndata state for "
658 "node %u: state=%d\n",
659 ndata->node_num, ndata->state);
670 mlog(0, "%s: node %u still in state %s\n",
672 ndata->state==DLM_RECO_NODE_DATA_RECEIVING ?
677 mlog(0, "%s: node %u state is done\n",
681 mlog(0, "%s: node %u state is finalize\n",
698 dlm->reco.state |= DLM_RECO_STATE_FINALIZE;
701 /* all nodes are now in DLM_RECO_NODE_DATA_DONE state
763 ndata->state = DLM_RECO_NODE_DATA_INIT;
895 mlog(ML_NOTICE, "%s: will not send recovery state, "
901 mlog(ML_NOTICE, "%s: reco state invalid: reco(dead=%u, "
926 "recovery state for dead node %u, ret=%d\n", dlm->name,
1003 switch (ndata->state) {
1008 mlog(ML_ERROR, "bad ndata state for node %u:"
1009 " state=%d\n", ndata->node_num,
1010 ndata->state);
1023 ndata->state = DLM_RECO_NODE_DATA_DONE;
1411 if (res->state & DLM_LOCK_RES_DROPPING_REF) {
1424 res->state |= DLM_LOCK_RES_RECOVERING;
1426 if (res->state & DLM_LOCK_RES_MIGRATING) {
1432 } else if (res->state & DLM_LOCK_RES_RECOVERING) {
1443 res->state |= DLM_LOCK_RES_MIGRATING;
1461 res->state |= DLM_LOCK_RES_RECOVERING;
1463 res->state |= DLM_LOCK_RES_MIGRATING;
1488 res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
1495 * the proper res->state flags. */
2062 res->state |= DLM_LOCK_RES_RECOVERING;
2102 * before sending this lock state to the
2118 * before sending this lock state to the
2154 * the lock state sent during recovery */
2156 res->state &= ~DLM_LOCK_RES_RECOVERING;
2167 * the RECOVERING state and set the owner
2172 if (res->state & DLM_LOCK_RES_RECOVERY_WAITING) {
2174 res->state &= ~DLM_LOCK_RES_RECOVERY_WAITING;
2179 if (!(res->state & DLM_LOCK_RES_RECOVERING))
2192 * the lock state sent during recovery */
2198 res->state &= ~DLM_LOCK_RES_RECOVERING;
2238 local = 1; /* check local state for valid lvb */
2316 res->state |= DLM_LOCK_RES_RECOVERY_WAITING;
2380 (res->state & DLM_LOCK_RES_DROPPING_REF)) {
2396 if (res->state & DLM_LOCK_RES_DROPPING_REF) {
2436 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2441 "finalize1 state, clearing\n", dlm->name, idx);
2442 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;
2447 /* Clean up join state on node death. */
2449 mlog(0, "Clearing join state for node %u\n", idx);
2776 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2778 "but this node is in finalize state, waiting on finalize2\n",
2933 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2941 dlm->reco.state |= DLM_RECO_STATE_FINALIZE;
2945 if (!(dlm->reco.state & DLM_RECO_STATE_FINALIZE)) {
2953 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;