Lines Matching defs:lkb
160 void dlm_print_lkb(struct dlm_lkb *lkb) in dlm_print_lkb()
181 struct dlm_lkb *lkb; in dlm_dump_rsb() local
218 static inline int can_be_queued(struct dlm_lkb *lkb) in can_be_queued()
223 static inline int force_blocking_asts(struct dlm_lkb *lkb) in force_blocking_asts()
228 static inline int is_demoted(struct dlm_lkb *lkb) in is_demoted()
233 static inline int is_altmode(struct dlm_lkb *lkb) in is_altmode()
238 static inline int is_granted(struct dlm_lkb *lkb) in is_granted()
249 static inline int is_process_copy(struct dlm_lkb *lkb) in is_process_copy()
254 static inline int is_master_copy(struct dlm_lkb *lkb) in is_master_copy()
259 static inline int middle_conversion(struct dlm_lkb *lkb) in middle_conversion()
267 static inline int down_conversion(struct dlm_lkb *lkb) in down_conversion()
272 static inline int is_overlap_unlock(struct dlm_lkb *lkb) in is_overlap_unlock()
277 static inline int is_overlap_cancel(struct dlm_lkb *lkb) in is_overlap_cancel()
282 static inline int is_overlap(struct dlm_lkb *lkb) in is_overlap()
288 static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in queue_cast()
312 static inline void queue_cast_overlap(struct dlm_rsb *r, struct dlm_lkb *lkb) in queue_cast_overlap()
318 static void queue_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rqmode) in queue_bast()
1167 static void attach_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb) in attach_lkb()
1173 static void detach_lkb(struct dlm_lkb *lkb) in detach_lkb()
1183 struct dlm_lkb *lkb; in create_lkb() local
1220 struct dlm_lkb *lkb; in find_lkb() local
1234 struct dlm_lkb *lkb = container_of(kref, struct dlm_lkb, lkb_ref); in kill_lkb() local
1245 static int __put_lkb(struct dlm_ls *ls, struct dlm_lkb *lkb) in __put_lkb()
1267 int dlm_put_lkb(struct dlm_lkb *lkb) in dlm_put_lkb()
1281 static inline void hold_lkb(struct dlm_lkb *lkb) in hold_lkb()
1291 static inline void unhold_lkb(struct dlm_lkb *lkb) in unhold_lkb()
1301 struct dlm_lkb *lkb = NULL; in lkb_add_ordered() local
1312 static void add_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int status) in add_lkb()
1346 static void del_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb) in del_lkb()
1353 static void move_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int sts) in move_lkb()
1395 struct dlm_lkb *lkb; in dlm_scan_waiters() local
1450 static int add_to_waiters(struct dlm_lkb *lkb, int mstype, int to_nodeid) in add_to_waiters()
1508 static int _remove_from_waiters(struct dlm_lkb *lkb, int mstype, in _remove_from_waiters()
1593 static int remove_from_waiters(struct dlm_lkb *lkb, int mstype) in remove_from_waiters()
1607 static int remove_from_waiters_ms(struct dlm_lkb *lkb, struct dlm_message *ms) in remove_from_waiters_ms()
1812 static void add_timeout(struct dlm_lkb *lkb) in add_timeout()
1836 static void del_timeout(struct dlm_lkb *lkb) in del_timeout()
1857 struct dlm_lkb *lkb; in dlm_scan_timeout() local
1923 struct dlm_lkb *lkb; in dlm_adjust_timeouts() local
1945 static void set_lvb_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_lvb_lock()
1996 static void set_lvb_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_lvb_unlock()
2025 static void set_lvb_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb, in set_lvb_lock_pc()
2056 static void _remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _remove_lock()
2065 static void remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in remove_lock()
2071 static void remove_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb) in remove_lock_pc()
2080 static int revert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in revert_lock()
2107 static int revert_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb) in revert_lock_pc()
2112 static void _grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _grant_lock()
2126 static void grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in grant_lock()
2132 static void grant_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb, in grant_lock_pc()
2143 static void grant_lock_pending(struct dlm_rsb *r, struct dlm_lkb *lkb) in grant_lock_pending()
2160 static void munge_demoted(struct dlm_lkb *lkb) in munge_demoted()
2171 static void munge_altmode(struct dlm_lkb *lkb, struct dlm_message *ms) in munge_altmode()
2190 static inline int first_in_list(struct dlm_lkb *lkb, struct list_head *head) in first_in_list()
2202 static int queue_conflict(struct list_head *head, struct dlm_lkb *lkb) in queue_conflict()
2295 static int _can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now, in _can_be_granted()
2441 static int can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now, in can_be_granted()
2506 struct dlm_lkb *lkb, *s; in grant_pending_convert() local
2575 struct dlm_lkb *lkb, *s; in grant_pending_wait() local
2613 struct dlm_lkb *lkb, *s; in grant_pending_locks() local
2662 struct dlm_lkb *lkb) in send_bast_queue()
2677 static void send_blocking_asts(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_blocking_asts()
2682 static void send_blocking_asts_all(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_blocking_asts_all()
2707 static int set_master(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_master()
2758 struct dlm_lkb *lkb, *safe; in process_lookup_list() local
2771 struct dlm_lkb *lkb; in confirm_master() local
2886 static int validate_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb, in validate_lock_args()
2937 static int validate_unlock_args(struct dlm_lkb *lkb, struct dlm_args *args) in validate_unlock_args()
3074 static int do_request(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_request()
3097 static void do_request_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_request_effects()
3111 static int do_convert(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_convert()
3166 static void do_convert_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_convert_effects()
3184 static int do_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_unlock()
3191 static void do_unlock_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_unlock_effects()
3199 static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_cancel()
3211 static void do_cancel_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_cancel_effects()
3225 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _request_lock()
3254 static int _convert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _convert_lock()
3273 static int _unlock_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _unlock_lock()
3292 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _cancel_lock()
3314 static int request_lock(struct dlm_ls *ls, struct dlm_lkb *lkb, char *name, in request_lock()
3340 static int convert_lock(struct dlm_ls *ls, struct dlm_lkb *lkb, in convert_lock()
3362 static int unlock_lock(struct dlm_ls *ls, struct dlm_lkb *lkb, in unlock_lock()
3384 static int cancel_lock(struct dlm_ls *ls, struct dlm_lkb *lkb, in cancel_lock()
3422 struct dlm_lkb *lkb; in dlm_lock() local
3470 struct dlm_lkb *lkb; in dlm_unlock() local
3559 static int create_message(struct dlm_rsb *r, struct dlm_lkb *lkb, in create_message()
3596 static void send_args(struct dlm_rsb *r, struct dlm_lkb *lkb, in send_args()
3640 static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype) in send_common()
3668 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_request()
3673 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_convert()
3695 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_unlock()
3700 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_cancel()
3705 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_grant()
3726 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode) in send_bast()
3747 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_lookup()
3795 static int send_common_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, in send_common_reply()
3817 static int send_request_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_request_reply()
3822 static int send_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_convert_reply()
3827 static int send_unlock_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_unlock_reply()
3832 static int send_cancel_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_cancel_reply()
3862 static void receive_flags(struct dlm_lkb *lkb, struct dlm_message *ms) in receive_flags()
3870 static void receive_flags_reply(struct dlm_lkb *lkb, struct dlm_message *ms) in receive_flags_reply()
3885 static int receive_lvb(struct dlm_ls *ls, struct dlm_lkb *lkb, in receive_lvb()
3913 static int receive_request_args(struct dlm_ls *ls, struct dlm_lkb *lkb, in receive_request_args()
3935 static int receive_convert_args(struct dlm_ls *ls, struct dlm_lkb *lkb, in receive_convert_args()
3950 static int receive_unlock_args(struct dlm_ls *ls, struct dlm_lkb *lkb, in receive_unlock_args()
3963 struct dlm_lkb *lkb = &ls->ls_stub_lkb; in setup_stub_lkb() local
3971 static int validate_message(struct dlm_lkb *lkb, struct dlm_message *ms) in validate_message()
4072 struct dlm_lkb *lkb; in receive_request() local
4165 struct dlm_lkb *lkb; in receive_convert() local
4220 struct dlm_lkb *lkb; in receive_unlock() local
4271 struct dlm_lkb *lkb; in receive_cancel() local
4307 struct dlm_lkb *lkb; in receive_grant() local
4338 struct dlm_lkb *lkb; in receive_bast() local
4479 struct dlm_lkb *lkb; in receive_request_reply() local
4597 static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, in __receive_convert_reply()
4641 static void _receive_convert_reply(struct dlm_lkb *lkb, struct dlm_message *ms) in _receive_convert_reply()
4666 struct dlm_lkb *lkb; in receive_convert_reply() local
4678 static void _receive_unlock_reply(struct dlm_lkb *lkb, struct dlm_message *ms) in _receive_unlock_reply()
4716 struct dlm_lkb *lkb; in receive_unlock_reply() local
4728 static void _receive_cancel_reply(struct dlm_lkb *lkb, struct dlm_message *ms) in _receive_cancel_reply()
4766 struct dlm_lkb *lkb; in receive_cancel_reply() local
4780 struct dlm_lkb *lkb; in receive_lookup_reply() local
5071 static void recover_convert_waiter(struct dlm_ls *ls, struct dlm_lkb *lkb, in recover_convert_waiter()
5099 static int waiter_needs_recovery(struct dlm_ls *ls, struct dlm_lkb *lkb, in waiter_needs_recovery()
5119 struct dlm_lkb *lkb, *safe; in dlm_recover_waiters_pre() local
5230 struct dlm_lkb *lkb; in find_resend_waiter() local
5266 struct dlm_lkb *lkb; in dlm_recover_waiters_post() local
5363 struct dlm_lkb *lkb, *safe; in purge_mstcpy_list() local
5396 struct dlm_lkb *lkb, *safe; in purge_dead_list() local
5546 struct dlm_lkb *lkb; in search_remid_list() local
5558 struct dlm_lkb *lkb; in search_remid() local
5573 static int receive_rcom_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb, in receive_rcom_lock_args()
5628 struct dlm_lkb *lkb; in dlm_recover_master_copy() local
5709 struct dlm_lkb *lkb; in dlm_recover_process_copy() local
5773 struct dlm_lkb *lkb; in dlm_user_request() local
5838 struct dlm_lkb *lkb; in dlm_user_convert() local
5898 struct dlm_lkb *lkb; in dlm_user_adopt_orphan() local
5963 struct dlm_lkb *lkb; in dlm_user_unlock() local
6012 struct dlm_lkb *lkb; in dlm_user_cancel() local
6049 struct dlm_lkb *lkb; in dlm_user_deadlock() local
6098 static int orphan_proc_lock(struct dlm_ls *ls, struct dlm_lkb *lkb) in orphan_proc_lock()
6121 static int unlock_proc_lock(struct dlm_ls *ls, struct dlm_lkb *lkb) in unlock_proc_lock()
6142 struct dlm_lkb *lkb = NULL; in del_proc_lock() local
6172 struct dlm_lkb *lkb, *safe; in dlm_clear_proc_locks() local
6215 struct dlm_lkb *lkb, *safe; in purge_proc_locks() local
6257 struct dlm_lkb *lkb, *safe; in do_purge() local