Lines Matching refs:reco

106 	if (dlm->reco.dead_node != dead_node)  in dlm_set_reco_dead_node()
108 dlm->name, dlm->reco.dead_node, dead_node); in dlm_set_reco_dead_node()
109 dlm->reco.dead_node = dead_node; in dlm_set_reco_dead_node()
117 dlm->name, dlm->reco.new_master, master); in dlm_set_reco_master()
118 dlm->reco.new_master = master; in dlm_set_reco_master()
124 clear_bit(dlm->reco.dead_node, dlm->recovery_map); in __dlm_reset_recovery()
244 dlm->reco.state & DLM_RECO_STATE_ACTIVE ? "ACTIVE" : "inactive", in dlm_print_reco_node_status()
245 dlm->reco.dead_node, dlm->reco.new_master); in dlm_print_reco_node_status()
247 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_print_reco_node_status()
278 list_for_each_entry(res, &dlm->reco.resources, recovering) { in dlm_print_reco_node_status()
319 ready = (dlm->reco.new_master != O2NM_INVALID_NODE_NUM); in dlm_reco_master_ready()
391 in_recovery = !!(dlm->reco.state & DLM_RECO_STATE_ACTIVE); in dlm_in_recovery()
403 dlm->reco.state, dlm->reco.new_master, in dlm_wait_for_recovery()
404 dlm->reco.dead_node); in dlm_wait_for_recovery()
406 wait_event(dlm->reco.event, !dlm_in_recovery(dlm)); in dlm_wait_for_recovery()
412 BUG_ON(dlm->reco.state & DLM_RECO_STATE_ACTIVE); in dlm_begin_recovery()
414 dlm->name, dlm->reco.dead_node); in dlm_begin_recovery()
415 dlm->reco.state |= DLM_RECO_STATE_ACTIVE; in dlm_begin_recovery()
421 BUG_ON(!(dlm->reco.state & DLM_RECO_STATE_ACTIVE)); in dlm_end_recovery()
422 dlm->reco.state &= ~DLM_RECO_STATE_ACTIVE; in dlm_end_recovery()
425 wake_up(&dlm->reco.event); in dlm_end_recovery()
431 "dead node %u in domain %s\n", dlm->reco.new_master, in dlm_print_recovery_master()
432 (dlm->node_num == dlm->reco.new_master ? "me" : "he"), in dlm_print_recovery_master()
433 dlm->reco.dead_node, dlm->name); in dlm_print_recovery_master()
451 if (dlm->reco.new_master != O2NM_INVALID_NODE_NUM && in dlm_do_recovery()
452 test_bit(dlm->reco.new_master, dlm->recovery_map)) { in dlm_do_recovery()
454 dlm->reco.new_master, dlm->reco.dead_node); in dlm_do_recovery()
460 if (dlm->reco.dead_node == O2NM_INVALID_NODE_NUM) { in dlm_do_recovery()
468 } else if (!test_bit(dlm->reco.dead_node, dlm->recovery_map)) { in dlm_do_recovery()
471 dlm->reco.dead_node); in dlm_do_recovery()
475 if (dlm->reco.dead_node == O2NM_INVALID_NODE_NUM) { in dlm_do_recovery()
483 dlm->reco.dead_node); in dlm_do_recovery()
491 if (dlm->reco.new_master == dlm->node_num) in dlm_do_recovery()
494 if (dlm->reco.new_master == O2NM_INVALID_NODE_NUM) { in dlm_do_recovery()
520 status = dlm_remaster_locks(dlm, dlm->reco.dead_node); in dlm_do_recovery()
524 "retrying.\n", dlm->name, status, dlm->reco.dead_node); in dlm_do_recovery()
531 dlm->name, dlm->reco.dead_node, dlm->node_num); in dlm_do_recovery()
534 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE; in dlm_do_recovery()
564 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_remaster_locks()
651 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_remaster_locks()
698 dlm->reco.state |= DLM_RECO_STATE_FINALIZE; in dlm_remaster_locks()
717 jiffies, dlm->reco.dead_node, in dlm_remaster_locks()
718 dlm->node_num, dlm->reco.new_master); in dlm_remaster_locks()
745 memcpy(dlm->reco.node_map, dlm->domain_map, sizeof(dlm->domain_map)); in dlm_init_recovery_area()
751 num = find_next_bit (dlm->reco.node_map, O2NM_MAX_NODES, num); in dlm_init_recovery_area()
765 list_add_tail(&ndata->list, &dlm->reco.node_data); in dlm_init_recovery_area()
779 list_splice_init(&dlm->reco.node_data, &tmplist); in dlm_destroy_recovery_area()
833 if (lr->dead_node != dlm->reco.dead_node) { in dlm_request_all_locks_handler()
836 lr->dead_node, dlm->reco.dead_node); in dlm_request_all_locks_handler()
842 BUG_ON(lr->dead_node != dlm->reco.dead_node); in dlm_request_all_locks_handler()
890 if (dead_node != dlm->reco.dead_node || in dlm_request_all_locks_worker()
891 reco_master != dlm->reco.new_master) { in dlm_request_all_locks_worker()
894 if (dlm->reco.new_master == O2NM_INVALID_NODE_NUM) { in dlm_request_all_locks_worker()
899 dlm->reco.dead_node, dlm->reco.new_master); in dlm_request_all_locks_worker()
903 dlm->name, dlm->reco.dead_node, in dlm_request_all_locks_worker()
904 dlm->reco.new_master, dead_node, reco_master); in dlm_request_all_locks_worker()
935 list_splice_init(&resources, &dlm->reco.resources); in dlm_request_all_locks_worker()
991 dlm->reco.dead_node, done->node_idx, dlm->node_num); in dlm_reco_data_done_handler()
993 mlog_bug_on_msg((done->dead_node != dlm->reco.dead_node), in dlm_reco_data_done_handler()
996 dlm->reco.dead_node, done->node_idx, dlm->node_num); in dlm_reco_data_done_handler()
999 list_for_each_entry(ndata, &dlm->reco.node_data, list) { in dlm_reco_data_done_handler()
1051 list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) { in dlm_move_reco_locks_to_list()
2072 list_add_tail(&res->recovering, &dlm->reco.resources); in dlm_move_lockres_to_recovery_list()
2146 list_for_each_entry_safe(res, next, &dlm->reco.resources, recovering) { in dlm_finish_local_lockres_recovery()
2433 if (dlm->reco.new_master == idx) { in __dlm_hb_node_down()
2436 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) { in __dlm_hb_node_down()
2442 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE; in __dlm_hb_node_down()
2561 dlm->name, jiffies, dlm->reco.dead_node, dlm->node_num); in dlm_pick_recovery_master()
2581 dlm->reco.new_master); in dlm_pick_recovery_master()
2588 if (dlm->reco.dead_node == O2NM_INVALID_NODE_NUM) { in dlm_pick_recovery_master()
2592 if (dlm->reco.new_master != O2NM_INVALID_NODE_NUM) { in dlm_pick_recovery_master()
2595 dlm->name, dlm->reco.new_master); in dlm_pick_recovery_master()
2607 dlm->reco.dead_node, dlm->node_num); in dlm_pick_recovery_master()
2609 dlm->reco.dead_node); in dlm_pick_recovery_master()
2651 dlm->name, dlm->reco.new_master, dlm->reco.dead_node); in dlm_pick_recovery_master()
2776 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) { in dlm_begin_reco_handler()
2780 dlm->reco.dead_node, dlm->reco.new_master); in dlm_begin_reco_handler()
2789 dlm->reco.dead_node, dlm->reco.new_master); in dlm_begin_reco_handler()
2794 if (dlm->reco.new_master != O2NM_INVALID_NODE_NUM) { in dlm_begin_reco_handler()
2795 if (test_bit(dlm->reco.new_master, dlm->recovery_map)) { in dlm_begin_reco_handler()
2797 "to %u\n", dlm->name, dlm->reco.new_master, in dlm_begin_reco_handler()
2801 "to %u\n", dlm->name, dlm->reco.new_master, in dlm_begin_reco_handler()
2806 if (dlm->reco.dead_node != O2NM_INVALID_NODE_NUM) { in dlm_begin_reco_handler()
2809 dlm->reco.dead_node, br->node_idx, br->dead_node); in dlm_begin_reco_handler()
2834 dlm->reco.dead_node, dlm->reco.new_master); in dlm_begin_reco_handler()
2851 "stage %d\n", dlm->name, dlm->reco.dead_node, stage); in dlm_send_finalize_reco_message()
2860 fr.dead_node = dlm->reco.dead_node; in dlm_send_finalize_reco_message()
2913 fr->dead_node, dlm->reco.dead_node, dlm->reco.new_master); in dlm_finalize_reco_handler()
2917 if (dlm->reco.new_master != fr->node_idx) { in dlm_finalize_reco_handler()
2920 fr->node_idx, dlm->reco.new_master, fr->dead_node); in dlm_finalize_reco_handler()
2923 if (dlm->reco.dead_node != fr->dead_node) { in dlm_finalize_reco_handler()
2926 fr->node_idx, fr->dead_node, dlm->reco.dead_node); in dlm_finalize_reco_handler()
2933 if (dlm->reco.state & DLM_RECO_STATE_FINALIZE) { in dlm_finalize_reco_handler()
2941 dlm->reco.state |= DLM_RECO_STATE_FINALIZE; in dlm_finalize_reco_handler()
2945 if (!(dlm->reco.state & DLM_RECO_STATE_FINALIZE)) { in dlm_finalize_reco_handler()
2953 dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE; in dlm_finalize_reco_handler()
2961 dlm->name, fr->node_idx, dlm->reco.dead_node, dlm->reco.new_master); in dlm_finalize_reco_handler()