Lines Matching refs:lkb
51 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()
68 if (lkb->lkb_wait_type) in print_format1_lock()
69 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1_lock()
76 struct dlm_lkb *lkb; in print_format1() local
130 list_for_each_entry(lkb, &res->res_grantqueue, lkb_statequeue) { in print_format1()
131 print_format1_lock(s, lkb, res); in print_format1()
137 list_for_each_entry(lkb, &res->res_convertqueue, lkb_statequeue) { in print_format1()
138 print_format1_lock(s, lkb, res); in print_format1()
144 list_for_each_entry(lkb, &res->res_waitqueue, lkb_statequeue) { in print_format1()
145 print_format1_lock(s, lkb, res); in print_format1()
154 list_for_each_entry(lkb, &res->res_lookup, lkb_rsb_lookup) { in print_format1()
156 lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); in print_format1()
157 if (lkb->lkb_wait_type) in print_format1()
158 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1()
167 static void print_format2_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format2_lock() argument
173 if (lkb->lkb_flags & DLM_IFL_USER) { in print_format2_lock()
174 if (lkb->lkb_ua) in print_format2_lock()
175 xid = lkb->lkb_ua->xid; in print_format2_lock()
179 us = ktime_to_us(ktime_sub(ktime_get(), lkb->lkb_timestamp)); in print_format2_lock()
185 lkb->lkb_id, in print_format2_lock()
186 lkb->lkb_nodeid, in print_format2_lock()
187 lkb->lkb_remid, in print_format2_lock()
188 lkb->lkb_ownpid, in print_format2_lock()
190 lkb->lkb_exflags, in print_format2_lock()
191 lkb->lkb_flags, in print_format2_lock()
192 lkb->lkb_status, in print_format2_lock()
193 lkb->lkb_grmode, in print_format2_lock()
194 lkb->lkb_rqmode, in print_format2_lock()
203 struct dlm_lkb *lkb; in print_format2() local
207 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2()
208 print_format2_lock(s, lkb, r); in print_format2()
213 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2()
214 print_format2_lock(s, lkb, r); in print_format2()
219 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format2()
220 print_format2_lock(s, lkb, r); in print_format2()
228 static void print_format3_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format3_lock() argument
233 if (lkb->lkb_flags & DLM_IFL_USER) { in print_format3_lock()
234 if (lkb->lkb_ua) in print_format3_lock()
235 xid = lkb->lkb_ua->xid; in print_format3_lock()
239 lkb->lkb_id, in print_format3_lock()
240 lkb->lkb_nodeid, in print_format3_lock()
241 lkb->lkb_remid, in print_format3_lock()
242 lkb->lkb_ownpid, in print_format3_lock()
244 lkb->lkb_exflags, in print_format3_lock()
245 lkb->lkb_flags, in print_format3_lock()
246 lkb->lkb_status, in print_format3_lock()
247 lkb->lkb_grmode, in print_format3_lock()
248 lkb->lkb_rqmode, in print_format3_lock()
249 lkb->lkb_last_bast.mode, in print_format3_lock()
251 lkb->lkb_wait_type, in print_format3_lock()
252 lkb->lkb_lvbseq, in print_format3_lock()
253 (unsigned long long)ktime_to_ns(lkb->lkb_timestamp), in print_format3_lock()
254 (unsigned long long)ktime_to_ns(lkb->lkb_last_bast_time)); in print_format3_lock()
259 struct dlm_lkb *lkb; in print_format3() local
306 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format3()
307 print_format3_lock(s, lkb, 0); in print_format3()
312 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format3()
313 print_format3_lock(s, lkb, 0); in print_format3()
318 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format3()
319 print_format3_lock(s, lkb, 0); in print_format3()
324 list_for_each_entry(lkb, &r->res_lookup, lkb_rsb_lookup) { in print_format3()
325 print_format3_lock(s, lkb, 1); in print_format3()
735 struct dlm_lkb *lkb; in waiters_read() local
742 list_for_each_entry(lkb, &ls->ls_waiters, lkb_wait_reply) { in waiters_read()
744 lkb->lkb_id, lkb->lkb_wait_type, in waiters_read()
745 lkb->lkb_nodeid, lkb->lkb_resource->res_name); in waiters_read()