Lines Matching refs:dlm_ctxt
55 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node);
58 void dlm_complete_recovery_thread(struct dlm_ctxt *dlm);
59 int dlm_launch_recovery_thread(struct dlm_ctxt *dlm);
60 void dlm_kick_recovery_thread(struct dlm_ctxt *dlm);
61 static int dlm_do_recovery(struct dlm_ctxt *dlm);
63 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm);
64 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node);
65 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node);
66 static int dlm_request_all_locks(struct dlm_ctxt *dlm,
68 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm, u8 dead_node);
75 static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm,
80 static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
83 static int dlm_send_finalize_reco_message(struct dlm_ctxt *dlm);
84 static int dlm_send_all_done_msg(struct dlm_ctxt *dlm,
86 static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node);
87 static void dlm_move_reco_locks_to_list(struct dlm_ctxt *dlm,
89 static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm,
97 static int dlm_lockres_master_requery(struct dlm_ctxt *dlm,
120 static inline void dlm_set_reco_dead_node(struct dlm_ctxt *dlm, in dlm_set_reco_dead_node()
130 static inline void dlm_set_reco_master(struct dlm_ctxt *dlm, in dlm_set_reco_master()
139 static inline void __dlm_reset_recovery(struct dlm_ctxt *dlm) in __dlm_reset_recovery()
147 static inline void dlm_reset_recovery(struct dlm_ctxt *dlm) in dlm_reset_recovery()
157 struct dlm_ctxt *dlm = in dlm_dispatch_work()
158 container_of(work, struct dlm_ctxt, dispatched_work); in dlm_dispatch_work()
194 void dlm_kick_recovery_thread(struct dlm_ctxt *dlm) in dlm_kick_recovery_thread()
206 int dlm_launch_recovery_thread(struct dlm_ctxt *dlm) in dlm_launch_recovery_thread()
221 void dlm_complete_recovery_thread(struct dlm_ctxt *dlm) in dlm_complete_recovery_thread()
255 static void dlm_print_reco_node_status(struct dlm_ctxt *dlm) in dlm_print_reco_node_status()
307 struct dlm_ctxt *dlm = data; in dlm_recovery_thread()
333 static int dlm_reco_master_ready(struct dlm_ctxt *dlm) in dlm_reco_master_ready()
344 int dlm_is_node_dead(struct dlm_ctxt *dlm, u8 node) in dlm_is_node_dead()
355 static int dlm_is_node_recovered(struct dlm_ctxt *dlm, u8 node) in dlm_is_node_recovered()
365 int dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death()
383 int dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery()
407 static int dlm_in_recovery(struct dlm_ctxt *dlm) in dlm_in_recovery()
417 void dlm_wait_for_recovery(struct dlm_ctxt *dlm) in dlm_wait_for_recovery()
429 static void dlm_begin_recovery(struct dlm_ctxt *dlm) in dlm_begin_recovery()
437 static void dlm_end_recovery(struct dlm_ctxt *dlm) in dlm_end_recovery()
446 static int dlm_do_recovery(struct dlm_ctxt *dlm) in dlm_do_recovery()
545 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node) in dlm_remaster_locks()
733 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node) in dlm_init_recovery_area()
767 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm, u8 dead_node) in dlm_destroy_recovery_area()
782 static int dlm_request_all_locks(struct dlm_ctxt *dlm, u8 request_from, in dlm_request_all_locks()
818 struct dlm_ctxt *dlm = data; in dlm_request_all_locks_handler()
869 struct dlm_ctxt *dlm; in dlm_request_all_locks_worker()
944 static int dlm_send_all_done_msg(struct dlm_ctxt *dlm, u8 dead_node, u8 send_to) in dlm_send_all_done_msg()
974 struct dlm_ctxt *dlm = data; in dlm_reco_data_done_handler()
1036 static void dlm_move_reco_locks_to_list(struct dlm_ctxt *dlm, in dlm_move_reco_locks_to_list()
1094 static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm, in dlm_send_mig_lockres_msg()
1230 static void dlm_add_dummy_lock(struct dlm_ctxt *dlm, in dlm_add_dummy_lock()
1244 static inline int dlm_is_dummy_lock(struct dlm_ctxt *dlm, in dlm_is_dummy_lock()
1259 int dlm_send_one_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_send_one_lockres()
1347 struct dlm_ctxt *dlm = data; in dlm_mig_lockres_handler()
1507 struct dlm_ctxt *dlm; in dlm_mig_lockres_worker()
1573 static int dlm_lockres_master_requery(struct dlm_ctxt *dlm, in dlm_lockres_master_requery()
1631 int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_master_requery()
1668 struct dlm_ctxt *dlm = data; in dlm_master_requery_handler()
1743 static int dlm_process_recovery_data(struct dlm_ctxt *dlm, in dlm_process_recovery_data()
1990 void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm, in dlm_move_lockres_to_recovery_list()
2075 static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm, in dlm_finish_local_lockres_recovery()
2157 static void dlm_revalidate_lvb(struct dlm_ctxt *dlm, in dlm_revalidate_lvb()
2200 static void dlm_free_dead_locks(struct dlm_ctxt *dlm, in dlm_free_dead_locks()
2274 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node) in dlm_do_local_recovery_cleanup()
2345 static void __dlm_hb_node_down(struct dlm_ctxt *dlm, int idx) in __dlm_hb_node_down()
2409 struct dlm_ctxt *dlm = data; in dlm_hb_node_down_cb()
2430 struct dlm_ctxt *dlm = data; in dlm_hb_node_up_cb()
2446 struct dlm_ctxt *dlm = astdata; in dlm_reco_ast()
2452 struct dlm_ctxt *dlm = astdata; in dlm_reco_bast()
2473 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm) in dlm_pick_recovery_master()
2597 static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node) in dlm_send_begin_reco_message()
2687 struct dlm_ctxt *dlm = data; in dlm_begin_reco_handler()
2759 static int dlm_send_finalize_reco_message(struct dlm_ctxt *dlm) in dlm_send_finalize_reco_message()
2818 struct dlm_ctxt *dlm = data; in dlm_finalize_reco_handler()