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 void dlm_wait_for_node_death(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_death()
382 void dlm_wait_for_node_recovery(struct dlm_ctxt *dlm, u8 node, int timeout) in dlm_wait_for_node_recovery()
405 static int dlm_in_recovery(struct dlm_ctxt *dlm) in dlm_in_recovery()
415 void dlm_wait_for_recovery(struct dlm_ctxt *dlm) in dlm_wait_for_recovery()
427 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()
447 static void dlm_print_recovery_master(struct dlm_ctxt *dlm) in dlm_print_recovery_master()
455 static int dlm_do_recovery(struct dlm_ctxt *dlm) in dlm_do_recovery()
554 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node) in dlm_remaster_locks()
750 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node) in dlm_init_recovery_area()
784 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm, u8 dead_node) in dlm_destroy_recovery_area()
799 static int dlm_request_all_locks(struct dlm_ctxt *dlm, u8 request_from, in dlm_request_all_locks()
834 struct dlm_ctxt *dlm = data; in dlm_request_all_locks_handler()
885 struct dlm_ctxt *dlm; in dlm_request_all_locks_worker()
960 static int dlm_send_all_done_msg(struct dlm_ctxt *dlm, u8 dead_node, u8 send_to) in dlm_send_all_done_msg()
990 struct dlm_ctxt *dlm = data; in dlm_reco_data_done_handler()
1052 static void dlm_move_reco_locks_to_list(struct dlm_ctxt *dlm, in dlm_move_reco_locks_to_list()
1110 static int dlm_send_mig_lockres_msg(struct dlm_ctxt *dlm, in dlm_send_mig_lockres_msg()
1248 static void dlm_add_dummy_lock(struct dlm_ctxt *dlm, in dlm_add_dummy_lock()
1262 static inline int dlm_is_dummy_lock(struct dlm_ctxt *dlm, in dlm_is_dummy_lock()
1277 int dlm_send_one_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_send_one_lockres()
1365 struct dlm_ctxt *dlm = data; in dlm_mig_lockres_handler()
1525 struct dlm_ctxt *dlm; in dlm_mig_lockres_worker()
1591 static int dlm_lockres_master_requery(struct dlm_ctxt *dlm, in dlm_lockres_master_requery()
1649 int dlm_do_master_requery(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_master_requery()
1686 struct dlm_ctxt *dlm = data; in dlm_master_requery_handler()
1761 static int dlm_process_recovery_data(struct dlm_ctxt *dlm, in dlm_process_recovery_data()
2010 void dlm_move_lockres_to_recovery_list(struct dlm_ctxt *dlm, in dlm_move_lockres_to_recovery_list()
2095 static void dlm_finish_local_lockres_recovery(struct dlm_ctxt *dlm, in dlm_finish_local_lockres_recovery()
2170 static void dlm_revalidate_lvb(struct dlm_ctxt *dlm, in dlm_revalidate_lvb()
2213 static void dlm_free_dead_locks(struct dlm_ctxt *dlm, in dlm_free_dead_locks()
2287 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node) in dlm_do_local_recovery_cleanup()
2358 static void __dlm_hb_node_down(struct dlm_ctxt *dlm, int idx) in __dlm_hb_node_down()
2423 struct dlm_ctxt *dlm = data; in dlm_hb_node_down_cb()
2444 struct dlm_ctxt *dlm = data; in dlm_hb_node_up_cb()
2460 struct dlm_ctxt *dlm = astdata; in dlm_reco_ast()
2466 struct dlm_ctxt *dlm = astdata; in dlm_reco_bast()
2487 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm) in dlm_pick_recovery_master()
2611 static int dlm_send_begin_reco_message(struct dlm_ctxt *dlm, u8 dead_node) in dlm_send_begin_reco_message()
2701 struct dlm_ctxt *dlm = data; in dlm_begin_reco_handler()
2773 static int dlm_send_finalize_reco_message(struct dlm_ctxt *dlm) in dlm_send_finalize_reco_message()
2832 struct dlm_ctxt *dlm = data; in dlm_finalize_reco_handler()