/linux-2.6.39/fs/dlm/ |
D | lock.c | 77 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb); 78 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb); 79 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb); 80 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb); 81 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb); 82 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode); 83 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb); 85 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb); 86 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb); 87 static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, [all …]
|
D | ast.c | 29 static void dlm_dump_lkb_callbacks(struct dlm_lkb *lkb) in dlm_dump_lkb_callbacks() argument 34 lkb->lkb_id, in dlm_dump_lkb_callbacks() 35 (unsigned long long)lkb->lkb_last_bast.seq, in dlm_dump_lkb_callbacks() 36 lkb->lkb_last_bast.flags, in dlm_dump_lkb_callbacks() 37 lkb->lkb_last_bast.mode, in dlm_dump_lkb_callbacks() 38 lkb->lkb_last_bast.sb_status, in dlm_dump_lkb_callbacks() 39 lkb->lkb_last_bast.sb_flags); in dlm_dump_lkb_callbacks() 42 lkb->lkb_id, in dlm_dump_lkb_callbacks() 43 (unsigned long long)lkb->lkb_last_cast.seq, in dlm_dump_lkb_callbacks() 44 lkb->lkb_last_cast.flags, in dlm_dump_lkb_callbacks() [all …]
|
D | debug_fs.c | 51 static int print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format1_lock() argument 54 seq_printf(s, "%08x %s", lkb->lkb_id, print_lockmode(lkb->lkb_grmode)); in print_format1_lock() 56 if (lkb->lkb_status == DLM_LKSTS_CONVERT || in print_format1_lock() 57 lkb->lkb_status == DLM_LKSTS_WAITING) in print_format1_lock() 58 seq_printf(s, " (%s)", print_lockmode(lkb->lkb_rqmode)); in print_format1_lock() 60 if (lkb->lkb_nodeid) { in print_format1_lock() 61 if (lkb->lkb_nodeid != res->res_nodeid) in print_format1_lock() 62 seq_printf(s, " Remote: %3d %08x", lkb->lkb_nodeid, in print_format1_lock() 63 lkb->lkb_remid); in print_format1_lock() 65 seq_printf(s, " Master: %08x", lkb->lkb_remid); in print_format1_lock() [all …]
|
D | netlink.c | 92 static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb) in fill_data() argument 94 struct dlm_rsb *r = lkb->lkb_resource; in fill_data() 99 data->nodeid = lkb->lkb_nodeid; in fill_data() 100 data->ownpid = lkb->lkb_ownpid; in fill_data() 101 data->id = lkb->lkb_id; in fill_data() 102 data->remid = lkb->lkb_remid; in fill_data() 103 data->status = lkb->lkb_status; in fill_data() 104 data->grmode = lkb->lkb_grmode; in fill_data() 105 data->rqmode = lkb->lkb_rqmode; in fill_data() 106 if (lkb->lkb_ua) in fill_data() [all …]
|
D | recover.c | 292 struct dlm_lkb *lkb; in set_lock_master() local 294 list_for_each_entry(lkb, queue, lkb_statequeue) in set_lock_master() 295 if (!(lkb->lkb_flags & DLM_IFL_MSTCPY)) in set_lock_master() 296 lkb->lkb_nodeid = nodeid; in set_lock_master() 466 struct dlm_lkb *lkb; in recover_locks_queue() local 469 list_for_each_entry(lkb, head, lkb_statequeue) { in recover_locks_queue() 470 error = dlm_send_rcom_lock(r, lkb); in recover_locks_queue() 580 struct dlm_lkb *lkb, *high_lkb = NULL; in recover_lvb() local 586 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in recover_lvb() 587 if (!(lkb->lkb_exflags & DLM_LKF_VALBLK)) in recover_lvb() [all …]
|
D | memory.c | 73 struct dlm_lkb *lkb; in dlm_allocate_lkb() local 75 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb() 76 return lkb; in dlm_allocate_lkb() 79 void dlm_free_lkb(struct dlm_lkb *lkb) in dlm_free_lkb() argument 81 if (lkb->lkb_flags & DLM_IFL_USER) { in dlm_free_lkb() 83 ua = lkb->lkb_ua; in dlm_free_lkb() 90 kmem_cache_free(lkb_cache, lkb); in dlm_free_lkb()
|
D | user.c | 175 void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode, in dlm_user_add_ast() argument 183 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD)) in dlm_user_add_ast() 186 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast() 195 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD)) in dlm_user_add_ast() 198 DLM_ASSERT(lkb->lkb_ua, dlm_print_lkb(lkb);); in dlm_user_add_ast() 199 ua = lkb->lkb_ua; in dlm_user_add_ast() 206 lkb->lkb_flags |= DLM_IFL_ENDOFLIFE; in dlm_user_add_ast() 210 rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); in dlm_user_add_ast() 216 if (list_empty(&lkb->lkb_astqueue)) { in dlm_user_add_ast() 217 kref_get(&lkb->lkb_ref); in dlm_user_add_ast() [all …]
|
D | ast.h | 16 void dlm_del_ast(struct dlm_lkb *lkb); 17 int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, 19 int dlm_rem_lkb_callback(struct dlm_ls *ls, struct dlm_lkb *lkb, 21 void dlm_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
|
D | rcom.c | 308 static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, in pack_rcom_lock() argument 313 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock() 314 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock() 315 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock() 316 rl->rl_flags = cpu_to_le32(lkb->lkb_flags); in pack_rcom_lock() 317 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock() 318 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock() 319 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock() 320 rl->rl_status = lkb->lkb_status; in pack_rcom_lock() 321 rl->rl_wait_type = cpu_to_le16(lkb->lkb_wait_type); in pack_rcom_lock() [all …]
|
D | lockspace.c | 650 struct dlm_lkb *lkb; in lockspace_busy() local 661 list_for_each_entry(lkb, &ls->ls_lkbtbl[i].list, in lockspace_busy() 663 if (!lkb->lkb_nodeid) { in lockspace_busy() 676 struct dlm_lkb *lkb; in release_lockspace() local 733 lkb = list_entry(head->next, struct dlm_lkb, in release_lockspace() 736 list_del(&lkb->lkb_idtbl_list); in release_lockspace() 738 dlm_del_ast(lkb); in release_lockspace() 740 if (lkb->lkb_lvbptr && lkb->lkb_flags & DLM_IFL_MSTCPY) in release_lockspace() 741 dlm_free_lvb(lkb->lkb_lvbptr); in release_lockspace() 743 dlm_free_lkb(lkb); in release_lockspace()
|
D | lock.h | 17 void dlm_print_lkb(struct dlm_lkb *lkb); 23 int dlm_put_lkb(struct dlm_lkb *lkb);
|
D | user.h | 12 void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode,
|
D | rcom.h | 20 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
|
D | dlm_internal.h | 596 void dlm_timeout_warn(struct dlm_lkb *lkb);
|