Home
last modified time | relevance | path

Searched refs:dlm_ls (Results 1 – 25 of 25) sorted by relevance

/fs/dlm/
Dlock.h17 void dlm_dump_rsb_name(struct dlm_ls *ls, char *name, int len);
19 void dlm_receive_message_saved(struct dlm_ls *ls, struct dlm_message *ms,
26 void dlm_scan_rsbs(struct dlm_ls *ls);
27 int dlm_lock_recovery_try(struct dlm_ls *ls);
28 void dlm_unlock_recovery(struct dlm_ls *ls);
29 void dlm_scan_waiters(struct dlm_ls *ls);
30 void dlm_scan_timeout(struct dlm_ls *ls);
31 void dlm_adjust_timeouts(struct dlm_ls *ls);
32 int dlm_master_lookup(struct dlm_ls *ls, int nodeid, char *name, int len,
38 void dlm_recover_purge(struct dlm_ls *ls);
[all …]
Drecover.h17 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls));
18 uint32_t dlm_recover_status(struct dlm_ls *ls);
19 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status);
20 int dlm_recover_members_wait(struct dlm_ls *ls);
21 int dlm_recover_directory_wait(struct dlm_ls *ls);
22 int dlm_recover_locks_wait(struct dlm_ls *ls);
23 int dlm_recover_done_wait(struct dlm_ls *ls);
24 int dlm_recover_masters(struct dlm_ls *ls);
25 int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc);
26 int dlm_recover_locks(struct dlm_ls *ls);
[all …]
Dmember.h16 int dlm_ls_stop(struct dlm_ls *ls);
17 int dlm_ls_start(struct dlm_ls *ls);
18 void dlm_clear_members(struct dlm_ls *ls);
19 void dlm_clear_members_gone(struct dlm_ls *ls);
20 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out);
21 int dlm_is_removed(struct dlm_ls *ls, int nodeid);
22 int dlm_is_member(struct dlm_ls *ls, int nodeid);
24 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc,
26 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc);
27 int dlm_slots_copy_in(struct dlm_ls *ls);
[all …]
Dlockspace.c35 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store()
58 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store()
66 static ssize_t dlm_id_show(struct dlm_ls *ls, char *buf) in dlm_id_show()
71 static ssize_t dlm_id_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_id_store()
77 static ssize_t dlm_nodir_show(struct dlm_ls *ls, char *buf) in dlm_nodir_show()
82 static ssize_t dlm_nodir_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_nodir_store()
90 static ssize_t dlm_recover_status_show(struct dlm_ls *ls, char *buf) in dlm_recover_status_show()
96 static ssize_t dlm_recover_nodeid_show(struct dlm_ls *ls, char *buf) in dlm_recover_nodeid_show()
103 ssize_t (*show)(struct dlm_ls *, char *);
104 ssize_t (*store)(struct dlm_ls *, const char *, size_t);
[all …]
Drecover.c44 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function()
72 uint32_t dlm_recover_status(struct dlm_ls *ls) in dlm_recover_status()
81 static void _set_recover_status(struct dlm_ls *ls, uint32_t status) in _set_recover_status()
86 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status) in dlm_set_recover_status()
93 static int wait_status_all(struct dlm_ls *ls, uint32_t wait_status, in wait_status_all()
126 static int wait_status_low(struct dlm_ls *ls, uint32_t wait_status, in wait_status_low()
152 static int wait_status(struct dlm_ls *ls, uint32_t status) in wait_status()
167 int dlm_recover_members_wait(struct dlm_ls *ls) in dlm_recover_members_wait()
210 int dlm_recover_directory_wait(struct dlm_ls *ls) in dlm_recover_directory_wait()
215 int dlm_recover_locks_wait(struct dlm_ls *ls) in dlm_recover_locks_wait()
[all …]
Drcom.c27 static int rcom_response(struct dlm_ls *ls) in rcom_response()
32 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom()
67 static void send_rcom(struct dlm_ls *ls, struct dlm_mhandle *mh, in send_rcom()
74 static void set_rcom_status(struct dlm_ls *ls, struct rcom_status *rs, in set_rcom_status()
84 static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf, in set_rcom_config()
95 static int check_rcom_config(struct dlm_ls *ls, struct dlm_rcom *rc, int nodeid) in check_rcom_config()
117 static void allow_sync_reply(struct dlm_ls *ls, uint64_t *new_seq) in allow_sync_reply()
125 static void disallow_sync_reply(struct dlm_ls *ls) in disallow_sync_reply()
144 int dlm_rcom_status(struct dlm_ls *ls, int nodeid, uint32_t status_flags) in dlm_rcom_status()
191 static void receive_rcom_status(struct dlm_ls *ls, struct dlm_rcom *rc_in) in receive_rcom_status()
[all …]
Dast.h19 int dlm_rem_lkb_callback(struct dlm_ls *ls, struct dlm_lkb *lkb,
25 int dlm_callback_start(struct dlm_ls *ls);
26 void dlm_callback_stop(struct dlm_ls *ls);
27 void dlm_callback_suspend(struct dlm_ls *ls);
28 void dlm_callback_resume(struct dlm_ls *ls);
Dmember.c29 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, in dlm_slot_save()
41 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc) in dlm_slots_copy_out()
63 static void log_debug_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, in log_debug_slots()
101 int dlm_slots_copy_in(struct dlm_ls *ls) in dlm_slots_copy_in()
169 int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size, in dlm_slots_assign()
296 static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new) in add_ordered_member()
320 static int dlm_add_member(struct dlm_ls *ls, struct dlm_config_node *node) in dlm_add_member()
354 int dlm_is_member(struct dlm_ls *ls, int nodeid) in dlm_is_member()
361 int dlm_is_removed(struct dlm_ls *ls, int nodeid) in dlm_is_removed()
379 void dlm_clear_members(struct dlm_ls *ls) in dlm_clear_members()
[all …]
Drecoverd.h17 void dlm_recoverd_stop(struct dlm_ls *ls);
18 int dlm_recoverd_start(struct dlm_ls *ls);
19 void dlm_recoverd_suspend(struct dlm_ls *ls);
20 void dlm_recoverd_resume(struct dlm_ls *ls);
Drequestqueue.h16 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms);
17 int dlm_process_requestqueue(struct dlm_ls *ls);
18 void dlm_wait_requestqueue(struct dlm_ls *ls);
19 void dlm_purge_requestqueue(struct dlm_ls *ls);
Dlockspace.h19 struct dlm_ls *dlm_find_lockspace_global(uint32_t id);
20 struct dlm_ls *dlm_find_lockspace_local(void *id);
21 struct dlm_ls *dlm_find_lockspace_device(int minor);
22 void dlm_put_lockspace(struct dlm_ls *ls);
Ddir.h18 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash);
19 void dlm_recover_dir_nodeid(struct dlm_ls *ls);
20 int dlm_recover_directory(struct dlm_ls *ls);
21 void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen,
Drecoverd.c33 static int enable_locking(struct dlm_ls *ls, uint64_t seq) in enable_locking()
53 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover()
258 static void do_ls_recovery(struct dlm_ls *ls) in do_ls_recovery()
278 struct dlm_ls *ls; in dlm_recoverd()
314 int dlm_recoverd_start(struct dlm_ls *ls) in dlm_recoverd_start()
327 void dlm_recoverd_stop(struct dlm_ls *ls) in dlm_recoverd_stop()
332 void dlm_recoverd_suspend(struct dlm_ls *ls) in dlm_recoverd_suspend()
338 void dlm_recoverd_resume(struct dlm_ls *ls) in dlm_recoverd_resume()
Ddlm_internal.h53 struct dlm_ls;
286 struct dlm_ls *res_ls; /* the lockspace */
512 struct dlm_ls { struct
693 static inline int dlm_locking_stopped(struct dlm_ls *ls) in dlm_locking_stopped()
698 static inline int dlm_recovery_stopped(struct dlm_ls *ls) in dlm_recovery_stopped()
703 static inline int dlm_no_directory(struct dlm_ls *ls) in dlm_no_directory()
717 int dlm_create_debug_file(struct dlm_ls *ls);
718 void dlm_delete_debug_file(struct dlm_ls *ls);
722 static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; } in dlm_create_debug_file()
723 static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } in dlm_delete_debug_file()
Drequestqueue.c34 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms) in dlm_add_requestqueue()
65 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue()
118 void dlm_wait_requestqueue(struct dlm_ls *ls) in dlm_wait_requestqueue()
130 static int purge_request(struct dlm_ls *ls, struct dlm_message *ms, int nodeid) in purge_request()
155 void dlm_purge_requestqueue(struct dlm_ls *ls) in dlm_purge_requestqueue()
Dlock.c91 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
205 static inline void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery()
210 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery()
215 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try()
351 struct dlm_ls *ls = r->res_ls; in put_rsb()
364 static int pre_rsb_struct(struct dlm_ls *ls) in pre_rsb_struct()
400 static int get_rsb_struct(struct dlm_ls *ls, char *name, int len, in get_rsb_struct()
545 static int find_rsb_dir(struct dlm_ls *ls, char *name, int len, in find_rsb_dir()
723 static int find_rsb_nodir(struct dlm_ls *ls, char *name, int len, in find_rsb_nodir()
817 static int find_rsb(struct dlm_ls *ls, char *name, int len, int from_nodeid, in find_rsb()
[all …]
Dast.c55 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_add_lkb_callback()
113 int dlm_rem_lkb_callback(struct dlm_ls *ls, struct dlm_lkb *lkb, in dlm_rem_lkb_callback()
177 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_add_cb()
215 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_callback_work()
267 int dlm_callback_start(struct dlm_ls *ls) in dlm_callback_start()
281 void dlm_callback_stop(struct dlm_ls *ls) in dlm_callback_stop()
287 void dlm_callback_suspend(struct dlm_ls *ls) in dlm_callback_suspend()
295 void dlm_callback_resume(struct dlm_ls *ls) in dlm_callback_resume()
Dmemory.h19 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls);
21 struct dlm_lkb *dlm_allocate_lkb(struct dlm_ls *ls);
23 char *dlm_allocate_lvb(struct dlm_ls *ls);
Drcom.h17 int dlm_rcom_status(struct dlm_ls *ls, int nodeid, uint32_t status_flags);
18 int dlm_rcom_names(struct dlm_ls *ls, int nodeid, char *last_name,int last_len);
22 void dlm_receive_rcom(struct dlm_ls *ls, struct dlm_rcom *rc, int nodeid);
Dmemory.c47 char *dlm_allocate_lvb(struct dlm_ls *ls) in dlm_allocate_lvb()
60 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls) in dlm_allocate_rsb()
75 struct dlm_lkb *dlm_allocate_lkb(struct dlm_ls *ls) in dlm_allocate_lkb()
Ddir.c35 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid()
52 void dlm_recover_dir_nodeid(struct dlm_ls *ls) in dlm_recover_dir_nodeid()
63 int dlm_recover_directory(struct dlm_ls *ls) in dlm_recover_directory()
200 static struct dlm_rsb *find_rsb_root(struct dlm_ls *ls, char *name, int len) in find_rsb_root()
236 void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen, in dlm_copy_master_names()
Duser.c178 struct dlm_ls *ls; in dlm_user_add_ast()
239 struct dlm_ls *ls; in device_user_lock()
284 struct dlm_ls *ls; in device_user_unlock()
313 struct dlm_ls *ls; in device_user_deadlock()
326 static int dlm_device_register(struct dlm_ls *ls, char *name) in dlm_device_register()
354 int dlm_device_deregister(struct dlm_ls *ls) in dlm_device_deregister()
373 struct dlm_ls *ls; in device_user_purge()
389 struct dlm_ls *ls; in device_create_lockspace()
419 struct dlm_ls *ls; in device_remove_lockspace()
634 struct dlm_ls *ls; in device_open()
[all …]
Dplock.c80 static void do_unlock_close(struct dlm_ls *ls, u64 number, in do_unlock_close()
107 struct dlm_ls *ls; in dlm_posix_lock()
247 struct dlm_ls *ls; in dlm_posix_unlock()
321 struct dlm_ls *ls; in dlm_posix_get()
Ddebug_fs.c445 struct dlm_ls *ls = seq->private; in table_seq_start()
523 struct dlm_ls *ls = seq->private; in table_seq_next()
689 struct dlm_ls *ls = file->private_data; in waiters_read()
719 void dlm_delete_debug_file(struct dlm_ls *ls) in dlm_delete_debug_file()
733 int dlm_create_debug_file(struct dlm_ls *ls) in dlm_create_debug_file()
Duser.h16 int dlm_device_deregister(struct dlm_ls *ls);