Lines Matching refs:dlm_rsb
78 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
79 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
80 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
81 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
82 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
83 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
84 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
85 static int send_remove(struct dlm_rsb *r);
86 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
87 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
88 static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb,
172 static void dlm_print_rsb(struct dlm_rsb *r) in dlm_print_rsb()
181 void dlm_dump_rsb(struct dlm_rsb *r) in dlm_dump_rsb()
245 static inline int is_remote(struct dlm_rsb *r) in is_remote()
290 static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in queue_cast()
314 static inline void queue_cast_overlap(struct dlm_rsb *r, struct dlm_lkb *lkb) in queue_cast_overlap()
320 static void queue_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rqmode) in queue_bast()
336 static inline void hold_rsb(struct dlm_rsb *r) in hold_rsb()
341 void dlm_hold_rsb(struct dlm_rsb *r) in dlm_hold_rsb()
349 static void put_rsb(struct dlm_rsb *r) in put_rsb()
359 void dlm_put_rsb(struct dlm_rsb *r) in dlm_put_rsb()
366 struct dlm_rsb *r1, *r2; in pre_rsb_struct()
401 struct dlm_rsb **r_ret) in get_rsb_struct()
403 struct dlm_rsb *r; in get_rsb_struct()
415 r = list_first_entry(&ls->ls_new_rsb, struct dlm_rsb, res_hashchain); in get_rsb_struct()
438 static int rsb_cmp(struct dlm_rsb *r, const char *name, int nlen) in rsb_cmp()
448 struct dlm_rsb **r_ret) in dlm_search_rsb_tree()
451 struct dlm_rsb *r; in dlm_search_rsb_tree()
455 r = rb_entry(node, struct dlm_rsb, res_hashnode); in dlm_search_rsb_tree()
472 static int rsb_insert(struct dlm_rsb *rsb, struct rb_root *tree) in rsb_insert()
479 struct dlm_rsb *cur = rb_entry(*newn, struct dlm_rsb, in rsb_insert()
548 unsigned int flags, struct dlm_rsb **r_ret) in find_rsb_dir()
550 struct dlm_rsb *r = NULL; in find_rsb_dir()
727 unsigned int flags, struct dlm_rsb **r_ret) in find_rsb_nodir()
729 struct dlm_rsb *r = NULL; in find_rsb_nodir()
819 unsigned int flags, struct dlm_rsb **r_ret) in find_rsb()
843 static int validate_master_nodeid(struct dlm_ls *ls, struct dlm_rsb *r, in validate_master_nodeid()
915 struct dlm_rsb *r = NULL; in dlm_master_lookup()
1088 struct dlm_rsb *r; in dlm_dump_rsb_hash()
1094 r = rb_entry(n, struct dlm_rsb, res_hashnode); in dlm_dump_rsb_hash()
1104 struct dlm_rsb *r = NULL; in dlm_dump_rsb_name()
1127 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in toss_rsb()
1144 static void unhold_rsb(struct dlm_rsb *r) in unhold_rsb()
1153 struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); in kill_rsb()
1169 static void attach_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb) in attach_lkb()
1314 static void add_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int status) in add_lkb()
1348 static void del_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb) in del_lkb()
1355 static void move_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int sts) in move_lkb()
1629 static void wait_pending_remove(struct dlm_rsb *r) in wait_pending_remove()
1655 struct dlm_rsb *r; in shrink_bucket()
1673 r = rb_entry(n, struct dlm_rsb, res_hashnode); in shrink_bucket()
1860 struct dlm_rsb *r; in dlm_scan_timeout()
1950 static void set_lvb_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_lvb_lock()
2001 static void set_lvb_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_lvb_unlock()
2030 static void set_lvb_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb, in set_lvb_lock_pc()
2061 static void _remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _remove_lock()
2070 static void remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in remove_lock()
2076 static void remove_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb) in remove_lock_pc()
2085 static int revert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in revert_lock()
2112 static int revert_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb) in revert_lock_pc()
2117 static void _grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _grant_lock()
2131 static void grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in grant_lock()
2137 static void grant_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb, in grant_lock_pc()
2148 static void grant_lock_pending(struct dlm_rsb *r, struct dlm_lkb *lkb) in grant_lock_pending()
2261 static int conversion_deadlock_detect(struct dlm_rsb *r, struct dlm_lkb *lkb2) in conversion_deadlock_detect()
2300 static int _can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now, in _can_be_granted()
2446 static int can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now, in can_be_granted()
2508 static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw, in grant_pending_convert()
2577 static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw, in grant_pending_wait()
2616 static void grant_pending_locks(struct dlm_rsb *r, unsigned int *count) in grant_pending_locks()
2666 static void send_bast_queue(struct dlm_rsb *r, struct list_head *head, in send_bast_queue()
2682 static void send_blocking_asts(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_blocking_asts()
2687 static void send_blocking_asts_all(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_blocking_asts_all()
2712 static int set_master(struct dlm_rsb *r, struct dlm_lkb *lkb) in set_master()
2761 static void process_lookup_list(struct dlm_rsb *r) in process_lookup_list()
2774 static void confirm_master(struct dlm_rsb *r, int error) in confirm_master()
3079 static int do_request(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_request()
3102 static void do_request_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_request_effects()
3116 static int do_convert(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_convert()
3171 static void do_convert_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_convert_effects()
3189 static int do_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_unlock()
3196 static void do_unlock_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_unlock_effects()
3204 static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb) in do_cancel()
3216 static void do_cancel_effects(struct dlm_rsb *r, struct dlm_lkb *lkb, in do_cancel_effects()
3230 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _request_lock()
3259 static int _convert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _convert_lock()
3278 static int _unlock_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _unlock_lock()
3297 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in _cancel_lock()
3322 struct dlm_rsb *r; in request_lock()
3348 struct dlm_rsb *r; in convert_lock()
3370 struct dlm_rsb *r; in unlock_lock()
3392 struct dlm_rsb *r; in cancel_lock()
3566 static int create_message(struct dlm_rsb *r, struct dlm_lkb *lkb, in create_message()
3603 static void send_args(struct dlm_rsb *r, struct dlm_lkb *lkb, in send_args()
3647 static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype) in send_common()
3675 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_request()
3680 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_convert()
3702 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_unlock()
3707 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_cancel()
3712 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_grant()
3733 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode) in send_bast()
3754 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb) in send_lookup()
3782 static int send_remove(struct dlm_rsb *r) in send_remove()
3802 static int send_common_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, in send_common_reply()
3824 static int send_request_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_request_reply()
3829 static int send_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_convert_reply()
3834 static int send_unlock_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_unlock_reply()
3839 static int send_cancel_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_cancel_reply()
3847 struct dlm_rsb *r = &ls->ls_stub_rsb; in send_lookup_reply()
4033 struct dlm_rsb *r; in send_repeat_remove()
4090 struct dlm_rsb *r; in receive_request()
4183 struct dlm_rsb *r; in receive_convert()
4238 struct dlm_rsb *r; in receive_unlock()
4289 struct dlm_rsb *r; in receive_cancel()
4325 struct dlm_rsb *r; in receive_grant()
4356 struct dlm_rsb *r; in receive_bast()
4404 struct dlm_rsb *r; in receive_remove()
4497 struct dlm_rsb *r; in receive_request_reply()
4614 static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, in __receive_convert_reply()
4660 struct dlm_rsb *r = lkb->lkb_resource; in _receive_convert_reply()
4697 struct dlm_rsb *r = lkb->lkb_resource; in _receive_unlock_reply()
4747 struct dlm_rsb *r = lkb->lkb_resource; in _receive_cancel_reply()
4798 struct dlm_rsb *r; in receive_lookup_reply()
5281 struct dlm_rsb *r; in dlm_recover_waiters_post()
5379 static void purge_mstcpy_list(struct dlm_ls *ls, struct dlm_rsb *r, in purge_mstcpy_list()
5402 void dlm_purge_mstcpy_locks(struct dlm_rsb *r) in dlm_purge_mstcpy_locks()
5411 static void purge_dead_list(struct dlm_ls *ls, struct dlm_rsb *r, in purge_dead_list()
5448 struct dlm_rsb *r; in dlm_recover_purge()
5488 static struct dlm_rsb *find_grant_rsb(struct dlm_ls *ls, int bucket) in find_grant_rsb()
5491 struct dlm_rsb *r; in find_grant_rsb()
5495 r = rb_entry(n, struct dlm_rsb, res_hashnode); in find_grant_rsb()
5530 struct dlm_rsb *r; in dlm_recover_grant()
5574 static struct dlm_lkb *search_remid(struct dlm_rsb *r, int nodeid, in search_remid()
5593 struct dlm_rsb *r, struct dlm_rcom *rc) in receive_rcom_lock_args()
5646 struct dlm_rsb *r; in dlm_recover_master_copy()
5727 struct dlm_rsb *r; in dlm_recover_process_copy()
6070 struct dlm_rsb *r; in dlm_user_deadlock()