Lines Matching refs:state
233 mlog(ML_NOTICE, "%s(%d): recovery info, state=%s, dead=%u, master=%u\n",
235 dlm->reco.state & DLM_RECO_STATE_ACTIVE ? "ACTIVE" : "inactive",
240 switch (ndata->state) {
266 mlog(ML_NOTICE, "%s: reco state, node %u, state=%s\n",
374 * the dlm recovery thread will set this state when it begins
376 * the state and wake as soon as all affected lock resources have
382 in_recovery = !!(dlm->reco.state & DLM_RECO_STATE_ACTIVE);
392 "state=%d, master=%u, dead=%u\n",
394 dlm->reco.state, dlm->reco.new_master,
403 BUG_ON(dlm->reco.state & DLM_RECO_STATE_ACTIVE);
406 dlm->reco.state |= DLM_RECO_STATE_ACTIVE;
412 BUG_ON(!(dlm->reco.state & DLM_RECO_STATE_ACTIVE));
413 dlm->reco.state &= ~DLM_RECO_STATE_ACTIVE;
525 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;
556 BUG_ON(ndata->state != DLM_RECO_NODE_DATA_INIT);
557 ndata->state = DLM_RECO_NODE_DATA_REQUESTING;
563 ndata->state = DLM_RECO_NODE_DATA_DONE;
575 ndata->state = DLM_RECO_NODE_DATA_DEAD;
577 * with the network state. */
599 switch (ndata->state) {
613 ndata->state = DLM_RECO_NODE_DATA_REQUESTED;
643 mlog(0, "checking recovery state of node %u\n",
645 switch (ndata->state) {
648 mlog(ML_ERROR, "bad ndata state for "
649 "node %u: state=%d\n",
650 ndata->node_num, ndata->state);
661 mlog(0, "%s: node %u still in state %s\n",
663 ndata->state==DLM_RECO_NODE_DATA_RECEIVING ?
668 mlog(0, "%s: node %u state is done\n",
672 mlog(0, "%s: node %u state is finalize\n",
689 dlm->reco.state |= DLM_RECO_STATE_FINALIZE;
692 /* all nodes are now in DLM_RECO_NODE_DATA_DONE state
754 ndata->state = DLM_RECO_NODE_DATA_INIT;
886 mlog(ML_NOTICE, "%s: will not send recovery state, "
892 mlog(ML_NOTICE, "%s: reco state invalid: reco(dead=%u, "
917 "recovery state for dead node %u, ret=%d\n", dlm->name,
994 switch (ndata->state) {
999 mlog(ML_ERROR, "bad ndata state for node %u:"
1000 " state=%d\n", ndata->node_num,
1001 ndata->state);
1014 ndata->state = DLM_RECO_NODE_DATA_DONE;
1402 if (res->state & DLM_LOCK_RES_DROPPING_REF) {
1415 res->state |= DLM_LOCK_RES_RECOVERING;
1417 if (res->state & DLM_LOCK_RES_MIGRATING) {
1423 } else if (res->state & DLM_LOCK_RES_RECOVERING) {
1434 res->state |= DLM_LOCK_RES_MIGRATING;
1452 res->state |= DLM_LOCK_RES_RECOVERING;
1454 res->state |= DLM_LOCK_RES_MIGRATING;
1479 res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
1486 * the proper res->state flags. */
2053 res->state |= DLM_LOCK_RES_RECOVERING;
2093 * before sending this lock state to the
2109 * before sending this lock state to the
2145 * the lock state sent during recovery */
2147 res->state &= ~DLM_LOCK_RES_RECOVERING;
2158 * the RECOVERING state and set the owner
2163 if (res->state & DLM_LOCK_RES_RECOVERY_WAITING) {
2165 res->state &= ~DLM_LOCK_RES_RECOVERY_WAITING;
2170 if (!(res->state & DLM_LOCK_RES_RECOVERING))
2183 * the lock state sent during recovery */
2189 res->state &= ~DLM_LOCK_RES_RECOVERING;
2229 local = 1; /* check local state for valid lvb */
2307 res->state |= DLM_LOCK_RES_RECOVERY_WAITING;
2371 (res->state & DLM_LOCK_RES_DROPPING_REF)) {
2387 if (res->state & DLM_LOCK_RES_DROPPING_REF) {
2427 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2432 "finalize1 state, clearing\n", dlm->name, idx);
2433 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;
2438 /* Clean up join state on node death. */
2440 mlog(0, "Clearing join state for node %u\n", idx);
2766 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2768 "but this node is in finalize state, waiting on finalize2\n",
2923 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) {
2931 dlm->reco.state |= DLM_RECO_STATE_FINALIZE;
2935 if (!(dlm->reco.state & DLM_RECO_STATE_FINALIZE)) {
2943 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE;