Lines Matching refs:dlm_ctxt

38 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node);
41 static int dlm_do_recovery(struct dlm_ctxt *dlm);
43 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm);
44 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node);
45 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node);
46 static int dlm_request_all_locks(struct dlm_ctxt *dlm,
48 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm);
55 static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm,
60 static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
63 static int dlm_send_finalize_reco_message(struct dlm_ctxt *dlm);
64 static int dlm_send_all_done_msg(struct dlm_ctxt *dlm,
66 static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node);
67 static void dlm_move_reco_locks_to_list(struct dlm_ctxt *dlm,
69 static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm,
77 static int dlm_lockres_master_requery(struct dlm_ctxt *dlm,
100 static inline void dlm_set_reco_dead_node(struct dlm_ctxt *dlm, in dlm_set_reco_dead_node()
110 static inline void dlm_set_reco_master(struct dlm_ctxt *dlm, in dlm_set_reco_master()
119 static inline void __dlm_reset_recovery(struct dlm_ctxt *dlm) in __dlm_reset_recovery()
130 struct dlm_ctxt *dlm = in dlm_dispatch_work()
131 container_of(work, struct dlm_ctxt, dispatched_work); in dlm_dispatch_work()
167 void dlm_kick_recovery_thread(struct dlm_ctxt *dlm) in dlm_kick_recovery_thread()
179 int dlm_launch_recovery_thread(struct dlm_ctxt *dlm) in dlm_launch_recovery_thread()
194 void dlm_complete_recovery_thread(struct dlm_ctxt *dlm) in dlm_complete_recovery_thread()
228 static void dlm_print_reco_node_status(struct dlm_ctxt *dlm) in dlm_print_reco_node_status()
280 struct dlm_ctxt *dlm = data; in dlm_recovery_thread()
306 static int dlm_reco_master_ready(struct dlm_ctxt *dlm) in dlm_reco_master_ready()
317 int dlm_is_node_dead(struct dlm_ctxt *dlm, u8 node) in dlm_is_node_dead()
328 static int dlm_is_node_recovered(struct dlm_ctxt *dlm, u8 node) in dlm_is_node_recovered()
338 void dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death()
355 void dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery()
378 static int dlm_in_recovery(struct dlm_ctxt *dlm) in dlm_in_recovery()
388 void dlm_wait_for_recovery(struct dlm_ctxt *dlm) in dlm_wait_for_recovery()
400 static void dlm_begin_recovery(struct dlm_ctxt *dlm) in dlm_begin_recovery()
409 static void dlm_end_recovery(struct dlm_ctxt *dlm) in dlm_end_recovery()
419 static void dlm_print_recovery_master(struct dlm_ctxt *dlm) in dlm_print_recovery_master()
427 static int dlm_do_recovery(struct dlm_ctxt *dlm) in dlm_do_recovery()
534 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node) in dlm_remaster_locks()
730 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node) in dlm_init_recovery_area()
764 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm) in dlm_destroy_recovery_area()
779 static int dlm_request_all_locks(struct dlm_ctxt *dlm, u8 request_from, in dlm_request_all_locks()
816 struct dlm_ctxt *dlm = data; in dlm_request_all_locks_handler()
867 struct dlm_ctxt *dlm; in dlm_request_all_locks_worker()
942 static int dlm_send_all_done_msg(struct dlm_ctxt *dlm, u8 dead_node, u8 send_to) in dlm_send_all_done_msg()
972 struct dlm_ctxt *dlm = data; in dlm_reco_data_done_handler()
1034 static void dlm_move_reco_locks_to_list(struct dlm_ctxt *dlm, in dlm_move_reco_locks_to_list()
1095 static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm, in dlm_send_mig_lockres_msg()
1231 static void dlm_add_dummy_lock(struct dlm_ctxt *dlm, in dlm_add_dummy_lock()
1245 static inline int dlm_is_dummy_lock(struct dlm_ctxt *dlm, in dlm_is_dummy_lock()
1260 int dlm_send_one_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_send_one_lockres()
1348 struct dlm_ctxt *dlm = data; in dlm_mig_lockres_handler()
1535 struct dlm_ctxt *dlm; in dlm_mig_lockres_worker()
1601 static int dlm_lockres_master_requery(struct dlm_ctxt *dlm, in dlm_lockres_master_requery()
1659 int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_master_requery()
1700 struct dlm_ctxt *dlm = data; in dlm_master_requery_handler()
1787 static int dlm_process_recovery_data(struct dlm_ctxt *dlm, in dlm_process_recovery_data()
2044 void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm, in dlm_move_lockres_to_recovery_list()
2128 static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm, in dlm_finish_local_lockres_recovery()
2209 static void dlm_revalidate_lvb(struct dlm_ctxt *dlm, in dlm_revalidate_lvb()
2252 static void dlm_free_dead_locks(struct dlm_ctxt *dlm, in dlm_free_dead_locks()
2320 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node) in dlm_do_local_recovery_cleanup()
2420 static void __dlm_hb_node_down(struct dlm_ctxt *dlm, int idx) in __dlm_hb_node_down()
2481 struct dlm_ctxt *dlm = data; in dlm_hb_node_down_cb()
2502 struct dlm_ctxt *dlm = data; in dlm_hb_node_up_cb()
2518 struct dlm_ctxt *dlm = astdata; in dlm_reco_ast()
2524 struct dlm_ctxt *dlm = astdata; in dlm_reco_bast()
2545 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm) in dlm_pick_recovery_master()
2669 static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node) in dlm_send_begin_reco_message()
2758 struct dlm_ctxt *dlm = data; in dlm_begin_reco_handler()
2831 static int dlm_send_finalize_reco_message(struct dlm_ctxt *dlm) in dlm_send_finalize_reco_message()
2890 struct dlm_ctxt *dlm = data; in dlm_finalize_reco_handler()