| /linux-6.15/fs/dlm/ |
| H A D | lock.c | 165 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() 2063 lkb->lkb_grmode = lkb->lkb_rqmode; in _grant_lock() 2112 lkb->lkb_id, lkb->lkb_grmode, lkb->lkb_rqmode); in munge_demoted() 3015 lkb->lkb_id, dlm_iflags_val(lkb), lkb->lkb_exflags, in validate_unlock_args() 3021 lkb->lkb_id, dlm_iflags_val(lkb), lkb->lkb_exflags, in validate_unlock_args() 4135 lkb->lkb_id, lkb->lkb_remid, in receive_unlock() [all …]
|
| H A D | ast.c | 74 lkb->lkb_id, mode, in dlm_may_skip_callback() 75 lkb->lkb_last_cast_cb_mode); in dlm_may_skip_callback() 86 if (lkb->lkb_last_cb_mode != -1 && in dlm_may_skip_callback() 99 lkb->lkb_last_bast_cb_mode = mode; in dlm_may_skip_callback() 115 lkb->lkb_last_cb_mode = mode; in dlm_may_skip_callback() 116 lkb->lkb_last_cb_flags = flags; in dlm_may_skip_callback() 133 (*cb)->lkb_id = lkb->lkb_id; in dlm_get_cb() 142 (*cb)->lkb_lksb = lkb->lkb_lksb; in dlm_get_cb() 157 (*cb)->astfn = lkb->lkb_astfn; in dlm_get_queue_cb() 158 (*cb)->bastfn = lkb->lkb_bastfn; in dlm_get_queue_cb() [all …]
|
| H A D | debug_fs.c | 55 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() 242 lkb->lkb_remid, in print_format3_lock() 613 lkb->lkb_id, lkb->lkb_wait_type, in waiters_read() [all …]
|
| H A D | memory.c | 40 goto lkb; in dlm_memory_init() 65 lkb: in dlm_memory_init() 120 struct dlm_lkb *lkb = container_of(rcu, struct dlm_lkb, rcu); in __free_lkb_rcu() local 122 if (test_bit(DLM_DFL_USER_BIT, &lkb->lkb_dflags)) { in __free_lkb_rcu() 124 ua = lkb->lkb_ua; in __free_lkb_rcu() 131 kmem_cache_free(lkb_cache, lkb); in __free_lkb_rcu() 134 void dlm_free_lkb(struct dlm_lkb *lkb) in dlm_free_lkb() argument 136 call_rcu(&lkb->rcu, __free_lkb_rcu); in dlm_free_lkb()
|
| H A D | recover.c | 407 struct dlm_lkb *lkb; in set_lock_master() local 411 lkb->lkb_nodeid = nodeid; in set_lock_master() 412 lkb->lkb_remid = 0; in set_lock_master() 621 struct dlm_lkb *lkb; in recover_locks_queue() local 822 struct dlm_lkb *lkb; in recover_conversion() local 825 if (lkb->lkb_grmode == DLM_LOCK_PR || in recover_conversion() 827 other_grmode = lkb->lkb_grmode; in recover_conversion() 828 other_lkid = lkb->lkb_id; in recover_conversion() 846 __func__, lkb->lkb_id, lkb->lkb_grmode, in recover_conversion() 847 lkb->lkb_rqmode, lkb->lkb_nodeid, in recover_conversion() [all …]
|
| H A D | rcom.c | 422 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock() 423 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock() 426 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock() 427 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock() 428 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock() 429 rl->rl_status = lkb->lkb_status; in pack_rcom_lock() 432 if (lkb->lkb_bastfn) in pack_rcom_lock() 434 if (lkb->lkb_astfn) in pack_rcom_lock() 443 if (lkb->lkb_lvbptr) in pack_rcom_lock() 455 if (lkb->lkb_lvbptr) in dlm_send_rcom_lock() [all …]
|
| H A D | ast.h | 14 bool dlm_may_skip_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, 16 int dlm_get_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, 19 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
|
| H A D | lockspace.c | 320 if (lkb->lkb_lvbptr && test_bit(DLM_IFL_MSTCPY_BIT, &lkb->lkb_iflags)) in lkb_idr_free() 321 dlm_free_lvb(lkb->lkb_lvbptr); in lkb_idr_free() 323 dlm_free_lkb(lkb); in lkb_idr_free() 337 struct dlm_lkb *lkb; in free_lockspace() local 343 xa_for_each(&ls->ls_lkbxa, id, lkb) { in free_lockspace() 344 lkb_idr_free(lkb); in free_lockspace() 676 struct dlm_lkb *lkb; in lockspace_busy() local 682 xa_for_each(&ls->ls_lkbxa, id, lkb) { in lockspace_busy() 687 xa_for_each(&ls->ls_lkbxa, id, lkb) { in lockspace_busy() 688 if (lkb->lkb_nodeid == 0 && in lockspace_busy() [all …]
|
| H A D | dlm_internal.h | 752 static inline uint32_t dlm_iflags_val(const struct dlm_lkb *lkb) in dlm_iflags_val() argument 754 return dlm_flags_val(&lkb->lkb_iflags, __DLM_IFL_MIN_BIT, in dlm_iflags_val() 758 static inline uint32_t dlm_dflags_val(const struct dlm_lkb *lkb) in dlm_dflags_val() argument 760 return dlm_flags_val(&lkb->lkb_dflags, __DLM_DFL_MIN_BIT, in dlm_dflags_val() 775 static inline uint32_t dlm_sbflags_val(const struct dlm_lkb *lkb) in dlm_sbflags_val() argument 780 return dlm_flags_val(&lkb->lkb_sbflags, __DLM_SBF_MIN_BIT, in dlm_sbflags_val() 797 static inline void dlm_set_dflags_val(struct dlm_lkb *lkb, uint32_t val) in dlm_set_dflags_val() argument 799 dlm_set_flags_val(&lkb->lkb_dflags, val, __DLM_DFL_MIN_BIT, in dlm_set_dflags_val() 803 static inline void dlm_set_sbflags_val(struct dlm_lkb *lkb, uint32_t val) in dlm_set_sbflags_val() argument 805 dlm_set_flags_val(&lkb->lkb_sbflags, val, __DLM_SBF_MIN_BIT, in dlm_set_sbflags_val()
|
| H A D | user.c | 187 if (test_bit(DLM_DFL_ORPHAN_BIT, &lkb->lkb_dflags) || in dlm_user_add_ast() 188 test_bit(DLM_IFL_DEAD_BIT, &lkb->lkb_iflags)) in dlm_user_add_ast() 191 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast() 200 if (test_bit(DLM_DFL_ORPHAN_BIT, &lkb->lkb_dflags) || in dlm_user_add_ast() 201 test_bit(DLM_IFL_DEAD_BIT, &lkb->lkb_iflags)) in dlm_user_add_ast() 204 DLM_ASSERT(lkb->lkb_ua, dlm_print_lkb(lkb);); in dlm_user_add_ast() 205 ua = lkb->lkb_ua; in dlm_user_add_ast() 212 set_bit(DLM_IFL_ENDOFLIFE_BIT, &lkb->lkb_iflags); in dlm_user_add_ast() 238 if (!list_empty(&lkb->lkb_ownqueue)) { in dlm_user_add_ast() 239 list_del_init(&lkb->lkb_ownqueue); in dlm_user_add_ast() [all …]
|
| H A D | user.h | 9 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 D | lock.h | 16 void dlm_print_lkb(struct dlm_lkb *lkb); 24 int dlm_put_lkb(struct dlm_lkb *lkb);
|
| H A D | rcom.h | 20 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, uint64_t seq);
|
| /linux-6.15/include/trace/events/ |
| H A D | dlm.h | 106 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen) 113 __entry->lkb_id = lkb->lkb_id; 117 r = lkb->lkb_resource; 150 lkb->lkb_resource ? lkb->lkb_resource->res_length : namelen) 157 __entry->lkb_id = lkb->lkb_id; 162 r = lkb->lkb_resource; 259 TP_ARGS(ls, lkb, flags), 266 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0) 276 r = lkb->lkb_resource; 303 lkb->lkb_resource ? lkb->lkb_resource->res_length : 0) [all …]
|