Home
last modified time | relevance | path

Searched refs:lkb (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/fs/dlm/
Dlock.c78 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);
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,
[all …]
Dast.c22 static void dlm_dump_lkb_callbacks(struct dlm_lkb *lkb) in dlm_dump_lkb_callbacks() argument
27 lkb->lkb_id, in dlm_dump_lkb_callbacks()
28 (unsigned long long)lkb->lkb_last_bast.seq, in dlm_dump_lkb_callbacks()
29 lkb->lkb_last_bast.flags, in dlm_dump_lkb_callbacks()
30 lkb->lkb_last_bast.mode, in dlm_dump_lkb_callbacks()
31 lkb->lkb_last_bast.sb_status, in dlm_dump_lkb_callbacks()
32 lkb->lkb_last_bast.sb_flags); in dlm_dump_lkb_callbacks()
35 lkb->lkb_id, in dlm_dump_lkb_callbacks()
36 (unsigned long long)lkb->lkb_last_cast.seq, in dlm_dump_lkb_callbacks()
37 lkb->lkb_last_cast.flags, in dlm_dump_lkb_callbacks()
[all …]
Ddebug_fs.c51 static void 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 …]
Dnetlink.c92 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 …]
Dmemory.c38 goto lkb; in dlm_memory_init()
55 lkb: in dlm_memory_init()
102 struct dlm_lkb *lkb; in dlm_allocate_lkb() local
104 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
105 return lkb; in dlm_allocate_lkb()
108 void dlm_free_lkb(struct dlm_lkb *lkb) in dlm_free_lkb() argument
110 if (lkb->lkb_flags & DLM_IFL_USER) { in dlm_free_lkb()
112 ua = lkb->lkb_ua; in dlm_free_lkb()
118 kmem_cache_free(lkb_cache, lkb); in dlm_free_lkb()
Duser.c177 void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode, in dlm_user_add_ast() argument
185 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD)) in dlm_user_add_ast()
188 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast()
197 if (lkb->lkb_flags & (DLM_IFL_ORPHAN | DLM_IFL_DEAD)) in dlm_user_add_ast()
200 DLM_ASSERT(lkb->lkb_ua, dlm_print_lkb(lkb);); in dlm_user_add_ast()
201 ua = lkb->lkb_ua; in dlm_user_add_ast()
208 lkb->lkb_flags |= DLM_IFL_ENDOFLIFE; in dlm_user_add_ast()
212 rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); in dlm_user_add_ast()
218 if (list_empty(&lkb->lkb_cb_list)) { in dlm_user_add_ast()
219 kref_get(&lkb->lkb_ref); in dlm_user_add_ast()
[all …]
Drecover.c403 struct dlm_lkb *lkb; in set_lock_master() local
405 list_for_each_entry(lkb, queue, lkb_statequeue) { in set_lock_master()
406 if (!(lkb->lkb_flags & DLM_IFL_MSTCPY)) { in set_lock_master()
407 lkb->lkb_nodeid = nodeid; in set_lock_master()
408 lkb->lkb_remid = 0; in set_lock_master()
619 struct dlm_lkb *lkb; in recover_locks_queue() local
622 list_for_each_entry(lkb, head, lkb_statequeue) { in recover_locks_queue()
623 error = dlm_send_rcom_lock(r, lkb); in recover_locks_queue()
821 struct dlm_lkb *lkb; in recover_conversion() local
824 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in recover_conversion()
[all …]
Drcom.c410 static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, in pack_rcom_lock() argument
415 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
416 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
417 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock()
418 rl->rl_flags = cpu_to_le32(lkb->lkb_flags); in pack_rcom_lock()
419 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
420 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock()
421 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock()
422 rl->rl_status = lkb->lkb_status; in pack_rcom_lock()
423 rl->rl_wait_type = cpu_to_le16(lkb->lkb_wait_type); in pack_rcom_lock()
[all …]
Dast.h14 int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode,
16 int dlm_rem_lkb_callback(struct dlm_ls *ls, struct dlm_lkb *lkb,
18 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
Dlockspace.c757 struct dlm_lkb *lkb = p; in lkb_idr_is_local() local
759 return lkb->lkb_nodeid == 0 && lkb->lkb_grmode != DLM_LOCK_IV; in lkb_idr_is_local()
769 struct dlm_lkb *lkb = p; in lkb_idr_free() local
771 if (lkb->lkb_lvbptr && lkb->lkb_flags & DLM_IFL_MSTCPY) in lkb_idr_free()
772 dlm_free_lvb(lkb->lkb_lvbptr); in lkb_idr_free()
774 dlm_free_lkb(lkb); in lkb_idr_free()
Dlock.h16 void dlm_print_lkb(struct dlm_lkb *lkb);
23 int dlm_put_lkb(struct dlm_lkb *lkb);
Duser.h9 void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode,
Drcom.h18 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
Ddlm_internal.h765 void dlm_timeout_warn(struct dlm_lkb *lkb);
769 static inline void dlm_timeout_warn(struct dlm_lkb *lkb) { }; in dlm_timeout_warn() argument
/linux-6.1.9/include/trace/events/
Ddlm.h52 TP_PROTO(struct dlm_ls *ls, struct dlm_lkb *lkb, const void *name,
55 TP_ARGS(ls, lkb, name, namelen, mode, flags),
63 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
70 __entry->lkb_id = lkb->lkb_id;
74 r = lkb->lkb_resource;
94 TP_PROTO(struct dlm_ls *ls, struct dlm_lkb *lkb, const void *name,
98 TP_ARGS(ls, lkb, name, namelen, mode, flags, error, kernel_lock),
107 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
114 __entry->lkb_id = lkb->lkb_id;
119 r = lkb->lkb_resource;
[all …]