Home
last modified time | relevance | path

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

/openbmc/linux/fs/dlm/
H A Dlock.c165 lkb->lkb_nodeid, lkb->lkb_id, lkb->lkb_remid, lkb->lkb_exflags, in dlm_print_lkb()
166 dlm_iflags_val(lkb), lkb->lkb_status, lkb->lkb_rqmode, in dlm_print_lkb()
167 lkb->lkb_grmode, lkb->lkb_wait_type, lkb->lkb_wait_nodeid, in dlm_print_lkb()
271 return (!middle_conversion(lkb) && lkb->lkb_rqmode < lkb->lkb_grmode); in down_conversion()
301 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, dlm_sbflags_val(lkb)); in queue_cast()
1892 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock()
1941 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted()
2847 lkb->lkb_id, dlm_iflags_val(lkb), lkb->lkb_exflags, in validate_unlock_args()
2853 lkb->lkb_id, dlm_iflags_val(lkb), lkb->lkb_exflags, in validate_unlock_args()
3381 if (lkb && lkb->lkb_lvbptr && (lkb->lkb_exflags & DLM_LKF_VALBLK)) in create_message()
[all …]
H A Dast.c53 if (lkb->lkb_last_cast) { in dlm_enqueue_lkb_callback()
56 lkb->lkb_id, mode, in dlm_enqueue_lkb_callback()
68 if (lkb->lkb_last_cb && lkb->lkb_last_cb->flags & DLM_CB_BAST) { in dlm_enqueue_lkb_callback()
80 if (lkb->lkb_last_cast) in dlm_enqueue_lkb_callback()
148 kref_get(&lkb->lkb_ref); in dlm_add_cb()
189 castfn = lkb->lkb_astfn; in dlm_callback_work()
190 bastfn = lkb->lkb_bastfn; in dlm_callback_work()
200 trace_dlm_ast(ls, lkb); in dlm_callback_work()
202 castfn(lkb->lkb_astparam); in dlm_callback_work()
219 dlm_put_lkb(lkb); in dlm_callback_work()
[all …]
H A Ddebug_fs.c55 seq_printf(s, "%08x %s", lkb->lkb_id, print_lockmode(lkb->lkb_grmode)); in print_format1_lock()
77 struct dlm_lkb *lkb; in print_format1() local
157 lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); in print_format1()
175 if (lkb->lkb_ua) in print_format2_lock()
186 lkb->lkb_id, in print_format2_lock()
188 lkb->lkb_remid, in print_format2_lock()
235 if (lkb->lkb_ua) in print_format3_lock()
240 lkb->lkb_id, in print_format3_lock()
378 lkb->lkb_id, in print_format5_lock()
831 lkb->lkb_id, lkb->lkb_wait_type, in waiters_read()
[all …]
H A Dmemory.c40 goto lkb; in dlm_memory_init()
65 lkb: in dlm_memory_init()
113 struct dlm_lkb *lkb; in dlm_allocate_lkb() local
115 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
116 return lkb; in dlm_allocate_lkb()
119 void dlm_free_lkb(struct dlm_lkb *lkb) in dlm_free_lkb() argument
121 if (test_bit(DLM_DFL_USER_BIT, &lkb->lkb_dflags)) { in dlm_free_lkb()
123 ua = lkb->lkb_ua; in dlm_free_lkb()
131 dlm_callback_set_last_ptr(&lkb->lkb_last_cast, NULL); in dlm_free_lkb()
132 dlm_callback_set_last_ptr(&lkb->lkb_last_cb, NULL); in dlm_free_lkb()
[all …]
H A Duser.c162 lkb->lkb_last_bast_mode = -1; in dlm_purge_lkb_callbacks()
207 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast()
220 DLM_ASSERT(lkb->lkb_ua, dlm_print_lkb(lkb);); in dlm_user_add_ast()
221 ua = lkb->lkb_ua; in dlm_user_add_ast()
239 kref_get(&lkb->lkb_ref); in dlm_user_add_ast()
256 dlm_put_lkb(lkb); in dlm_user_add_ast()
805 struct dlm_lkb *lkb; in device_read() local
875 dlm_put_lkb(lkb); in device_read()
891 trace_dlm_bast(lkb->lkb_resource->res_ls, lkb, cb->mode); in device_read()
895 trace_dlm_ast(lkb->lkb_resource->res_ls, lkb); in device_read()
[all …]
H A Drecover.c404 struct dlm_lkb *lkb; in set_lock_master() local
408 lkb->lkb_nodeid = nodeid; in set_lock_master()
409 lkb->lkb_remid = 0; in set_lock_master()
621 struct dlm_lkb *lkb; in recover_locks_queue() local
823 struct dlm_lkb *lkb; in recover_conversion() local
829 grmode = lkb->lkb_grmode; in recover_conversion()
835 if (lkb->lkb_grmode != DLM_LOCK_IV) in recover_conversion()
839 lkb->lkb_id, lkb->lkb_rqmode); in recover_conversion()
840 lkb->lkb_grmode = lkb->lkb_rqmode; in recover_conversion()
843 lkb->lkb_id, grmode); in recover_conversion()
[all …]
H A Drcom.c423 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
424 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
427 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
428 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock()
429 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock()
430 rl->rl_status = lkb->lkb_status; in pack_rcom_lock()
433 if (lkb->lkb_bastfn) in pack_rcom_lock()
435 if (lkb->lkb_astfn) in pack_rcom_lock()
444 if (lkb->lkb_lvbptr) in pack_rcom_lock()
456 if (lkb->lkb_lvbptr) in dlm_send_rcom_lock()
[all …]
H A Dast.h17 int dlm_enqueue_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode,
22 int dlm_dequeue_lkb_callback(struct dlm_lkb *lkb, struct dlm_callback **cb);
23 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
H A Ddlm_internal.h753 static inline uint32_t dlm_iflags_val(const struct dlm_lkb *lkb) in dlm_iflags_val() argument
755 return dlm_flags_val(&lkb->lkb_iflags, __DLM_IFL_MIN_BIT, in dlm_iflags_val()
759 static inline uint32_t dlm_dflags_val(const struct dlm_lkb *lkb) in dlm_dflags_val() argument
761 return dlm_flags_val(&lkb->lkb_dflags, __DLM_DFL_MIN_BIT, in dlm_dflags_val()
776 static inline uint32_t dlm_sbflags_val(const struct dlm_lkb *lkb) in dlm_sbflags_val() argument
781 return dlm_flags_val(&lkb->lkb_sbflags, __DLM_SBF_MIN_BIT, in dlm_sbflags_val()
798 static inline void dlm_set_dflags_val(struct dlm_lkb *lkb, uint32_t val) in dlm_set_dflags_val() argument
800 dlm_set_flags_val(&lkb->lkb_dflags, val, __DLM_DFL_MIN_BIT, in dlm_set_dflags_val()
804 static inline void dlm_set_sbflags_val(struct dlm_lkb *lkb, uint32_t val) in dlm_set_sbflags_val() argument
806 dlm_set_flags_val(&lkb->lkb_sbflags, val, __DLM_SBF_MIN_BIT, in dlm_set_sbflags_val()
H A Duser.h9 void dlm_purge_lkb_callbacks(struct dlm_lkb *lkb);
10 void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode,
H A Dlockspace.c730 struct dlm_lkb *lkb = p; in lkb_idr_is_local() local
732 return lkb->lkb_nodeid == 0 && lkb->lkb_grmode != DLM_LOCK_IV; in lkb_idr_is_local()
742 struct dlm_lkb *lkb = p; in lkb_idr_free() local
744 if (lkb->lkb_lvbptr && test_bit(DLM_IFL_MSTCPY_BIT, &lkb->lkb_iflags)) in lkb_idr_free()
745 dlm_free_lvb(lkb->lkb_lvbptr); in lkb_idr_free()
747 dlm_free_lkb(lkb); in lkb_idr_free()
H A Dlock.h16 void dlm_print_lkb(struct dlm_lkb *lkb);
23 int dlm_put_lkb(struct dlm_lkb *lkb);
H A Drcom.h20 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, uint64_t seq);
/openbmc/linux/include/trace/events/
H A Ddlm.h106 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
117 r = lkb->lkb_resource;
150 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen)
162 r = lkb->lkb_resource;
194 TP_ARGS(ls, lkb, mode),
201 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
211 r = lkb->lkb_resource;
229 TP_ARGS(ls, lkb),
237 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
274 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0)
[all …]