Lines Matching refs:dlm_ctxt

38 static void dlm_mle_node_down(struct dlm_ctxt *dlm,
42 static void dlm_mle_node_up(struct dlm_ctxt *dlm,
48 static int dlm_do_assert_master(struct dlm_ctxt *dlm,
53 static inline int dlm_mle_equal(struct dlm_ctxt *dlm, in dlm_mle_equal()
75 struct dlm_ctxt *dlm,
81 static int dlm_find_mle(struct dlm_ctxt *dlm,
89 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
93 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm,
97 static int dlm_add_migration_mle(struct dlm_ctxt *dlm,
104 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm,
106 static void dlm_remove_nonlocal_locks(struct dlm_ctxt *dlm,
108 static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm,
111 static int dlm_pre_master_reco_lockres(struct dlm_ctxt *dlm,
161 static inline void __dlm_mle_attach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_attach_hb_events()
170 static inline void __dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_detach_hb_events()
178 static inline void dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in dlm_mle_detach_hb_events()
188 struct dlm_ctxt *dlm; in dlm_get_mle_inuse()
199 struct dlm_ctxt *dlm; in dlm_put_mle_inuse()
214 struct dlm_ctxt *dlm; in __dlm_put_mle()
233 struct dlm_ctxt *dlm; in dlm_put_mle()
250 struct dlm_ctxt *dlm, in dlm_init_mle()
302 void __dlm_unlink_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_unlink_mle()
311 void __dlm_insert_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_insert_mle()
322 static int dlm_find_mle(struct dlm_ctxt *dlm, in dlm_find_mle()
344 void dlm_hb_event_notify_attached(struct dlm_ctxt *dlm, int idx, int node_up) in dlm_hb_event_notify_attached()
358 static void dlm_mle_node_down(struct dlm_ctxt *dlm, in dlm_mle_node_down()
372 static void dlm_mle_node_up(struct dlm_ctxt *dlm, in dlm_mle_node_up()
406 struct dlm_ctxt *dlm; in dlm_mle_release()
467 struct dlm_ctxt *dlm; in dlm_lockres_release()
523 static void dlm_init_lockres(struct dlm_ctxt *dlm, in dlm_init_lockres()
578 struct dlm_lock_resource *dlm_new_lockres(struct dlm_ctxt *dlm, in dlm_new_lockres()
601 void dlm_lockres_set_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_set_refmap_bit()
612 void dlm_lockres_clear_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_clear_refmap_bit()
623 static void __dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_ref()
633 void dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_grab_inflight_ref()
640 void dlm_lockres_drop_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_ref()
656 void __dlm_lockres_grab_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_worker()
666 static void __dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_drop_inflight_worker()
677 static void dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_worker()
701 struct dlm_lock_resource * dlm_get_lock_resource(struct dlm_ctxt *dlm, in dlm_get_lock_resource()
1001 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, in dlm_wait_for_lock_mastery()
1206 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm, in dlm_restart_lock_mastery()
1309 struct dlm_ctxt *dlm = mle->dlm; in dlm_do_master_request()
1404 struct dlm_ctxt *dlm = data; in dlm_master_request_handler()
1650 static int dlm_do_assert_master(struct dlm_ctxt *dlm, in dlm_do_assert_master()
1762 struct dlm_ctxt *dlm = data; in dlm_assert_master_handler()
2049 int dlm_dispatch_assert_master(struct dlm_ctxt *dlm, in dlm_dispatch_assert_master()
2081 struct dlm_ctxt *dlm = data; in dlm_assert_master_worker()
2165 static int dlm_pre_master_reco_lockres(struct dlm_ctxt *dlm, in dlm_pre_master_reco_lockres()
2215 int dlm_drop_lockres_ref(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_drop_lockres_ref()
2252 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_handler()
2346 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_done_handler()
2408 static void dlm_drop_lockres_ref_done(struct dlm_ctxt *dlm, in dlm_drop_lockres_ref_done()
2441 struct dlm_ctxt *dlm; in dlm_deref_lockres_worker()
2482 static int dlm_is_lockres_migratable(struct dlm_ctxt *dlm, in dlm_is_lockres_migratable()
2540 static int dlm_migrate_lockres(struct dlm_ctxt *dlm, in dlm_migrate_lockres()
2760 int dlm_empty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_empty_lockres()
2790 int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_lock_basts_flushed()
2801 static int dlm_migration_can_proceed(struct dlm_ctxt *dlm, in dlm_migration_can_proceed()
2819 static int dlm_lockres_is_dirty(struct dlm_ctxt *dlm, in dlm_lockres_is_dirty()
2830 static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm, in dlm_mark_lockres_migrating()
2922 static void dlm_remove_nonlocal_locks(struct dlm_ctxt *dlm, in dlm_remove_nonlocal_locks()
2976 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm, in dlm_pick_migration_target()
3022 static int dlm_do_migrate_request(struct dlm_ctxt *dlm, in dlm_do_migrate_request()
3102 struct dlm_ctxt *dlm = data; in dlm_migrate_request_handler()
3179 static int dlm_add_migration_mle(struct dlm_ctxt *dlm, in dlm_add_migration_mle()
3255 static struct dlm_lock_resource *dlm_reset_mleres_owner(struct dlm_ctxt *dlm, in dlm_reset_mleres_owner()
3285 static void dlm_clean_migration_mle(struct dlm_ctxt *dlm, in dlm_clean_migration_mle()
3298 static void dlm_clean_block_mle(struct dlm_ctxt *dlm, in dlm_clean_block_mle()
3327 void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node) in dlm_clean_master_list()
3411 int dlm_finish_migration(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_finish_migration()
3509 void dlm_lockres_release_ast(struct dlm_ctxt *dlm, in dlm_lockres_release_ast()
3528 void dlm_force_free_mles(struct dlm_ctxt *dlm) in dlm_force_free_mles()