Lines Matching refs:dlm_ctxt
40 static void dlm_mle_node_down(struct dlm_ctxt *dlm,
44 static void dlm_mle_node_up(struct dlm_ctxt *dlm,
50 static int dlm_do_assert_master(struct dlm_ctxt *dlm,
55 static inline int dlm_mle_equal(struct dlm_ctxt *dlm, in dlm_mle_equal()
77 struct dlm_ctxt *dlm,
83 static int dlm_find_mle(struct dlm_ctxt *dlm,
91 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
95 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm,
99 static int dlm_add_migration_mle(struct dlm_ctxt *dlm,
106 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm,
108 static void dlm_remove_nonlocal_locks(struct dlm_ctxt *dlm,
110 static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm,
113 static int dlm_pre_master_reco_lockres(struct dlm_ctxt *dlm,
163 static inline void __dlm_mle_attach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_attach_hb_events()
172 static inline void __dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_detach_hb_events()
180 static inline void dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in dlm_mle_detach_hb_events()
190 struct dlm_ctxt *dlm; in dlm_get_mle_inuse()
201 struct dlm_ctxt *dlm; in dlm_put_mle_inuse()
216 struct dlm_ctxt *dlm; in __dlm_put_mle()
235 struct dlm_ctxt *dlm; in dlm_put_mle()
252 struct dlm_ctxt *dlm, in dlm_init_mle()
304 void __dlm_unlink_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_unlink_mle()
313 void __dlm_insert_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_insert_mle()
324 static int dlm_find_mle(struct dlm_ctxt *dlm, in dlm_find_mle()
346 void dlm_hb_event_notify_attached(struct dlm_ctxt *dlm, int idx, int node_up) in dlm_hb_event_notify_attached()
360 static void dlm_mle_node_down(struct dlm_ctxt *dlm, in dlm_mle_node_down()
374 static void dlm_mle_node_up(struct dlm_ctxt *dlm, in dlm_mle_node_up()
408 struct dlm_ctxt *dlm; in dlm_mle_release()
469 struct dlm_ctxt *dlm; in dlm_lockres_release()
525 static void dlm_init_lockres(struct dlm_ctxt *dlm, in dlm_init_lockres()
580 struct dlm_lock_resource *dlm_new_lockres(struct dlm_ctxt *dlm, in dlm_new_lockres()
603 void dlm_lockres_set_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_set_refmap_bit()
614 void dlm_lockres_clear_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_clear_refmap_bit()
625 static void __dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_ref()
635 void dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_grab_inflight_ref()
642 void dlm_lockres_drop_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_ref()
658 void __dlm_lockres_grab_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_worker()
668 static void __dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_drop_inflight_worker()
679 static void dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_worker()
703 struct dlm_lock_resource * dlm_get_lock_resource(struct dlm_ctxt *dlm, in dlm_get_lock_resource()
1003 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, in dlm_wait_for_lock_mastery()
1208 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm, in dlm_restart_lock_mastery()
1311 struct dlm_ctxt *dlm = mle->dlm; in dlm_do_master_request()
1406 struct dlm_ctxt *dlm = data; in dlm_master_request_handler()
1652 static int dlm_do_assert_master(struct dlm_ctxt *dlm, in dlm_do_assert_master()
1764 struct dlm_ctxt *dlm = data; in dlm_assert_master_handler()
2051 int dlm_dispatch_assert_master(struct dlm_ctxt *dlm, in dlm_dispatch_assert_master()
2083 struct dlm_ctxt *dlm = data; in dlm_assert_master_worker()
2167 static int dlm_pre_master_reco_lockres(struct dlm_ctxt *dlm, in dlm_pre_master_reco_lockres()
2217 int dlm_drop_lockres_ref(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_drop_lockres_ref()
2254 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_handler()
2348 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_done_handler()
2410 static void dlm_drop_lockres_ref_done(struct dlm_ctxt *dlm, in dlm_drop_lockres_ref_done()
2443 struct dlm_ctxt *dlm; in dlm_deref_lockres_worker()
2484 static int dlm_is_lockres_migratable(struct dlm_ctxt *dlm, in dlm_is_lockres_migratable()
2542 static int dlm_migrate_lockres(struct dlm_ctxt *dlm, in dlm_migrate_lockres()
2762 int dlm_empty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_empty_lockres()
2792 int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_lock_basts_flushed()
2803 static int dlm_migration_can_proceed(struct dlm_ctxt *dlm, in dlm_migration_can_proceed()
2821 static int dlm_lockres_is_dirty(struct dlm_ctxt *dlm, in dlm_lockres_is_dirty()
2832 static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm, in dlm_mark_lockres_migrating()
2924 static void dlm_remove_nonlocal_locks(struct dlm_ctxt *dlm, in dlm_remove_nonlocal_locks()
2978 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm, in dlm_pick_migration_target()
3024 static int dlm_do_migrate_request(struct dlm_ctxt *dlm, in dlm_do_migrate_request()
3104 struct dlm_ctxt *dlm = data; in dlm_migrate_request_handler()
3181 static int dlm_add_migration_mle(struct dlm_ctxt *dlm, in dlm_add_migration_mle()
3257 static struct dlm_lock_resource *dlm_reset_mleres_owner(struct dlm_ctxt *dlm, in dlm_reset_mleres_owner()
3287 static void dlm_clean_migration_mle(struct dlm_ctxt *dlm, in dlm_clean_migration_mle()
3300 static void dlm_clean_block_mle(struct dlm_ctxt *dlm, in dlm_clean_block_mle()
3329 void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node) in dlm_clean_master_list()
3413 int dlm_finish_migration(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_finish_migration()
3511 void dlm_lockres_release_ast(struct dlm_ctxt *dlm, in dlm_lockres_release_ast()
3530 void dlm_force_free_mles(struct dlm_ctxt *dlm) in dlm_force_free_mles()