Lines Matching refs:lkb
49 static void print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format1_lock() argument
52 seq_printf(s, "%08x %s", lkb->lkb_id, print_lockmode(lkb->lkb_grmode)); in print_format1_lock()
54 if (lkb->lkb_status == DLM_LKSTS_CONVERT || in print_format1_lock()
55 lkb->lkb_status == DLM_LKSTS_WAITING) in print_format1_lock()
56 seq_printf(s, " (%s)", print_lockmode(lkb->lkb_rqmode)); in print_format1_lock()
58 if (lkb->lkb_nodeid) { in print_format1_lock()
59 if (lkb->lkb_nodeid != res->res_nodeid) in print_format1_lock()
60 seq_printf(s, " Remote: %3d %08x", lkb->lkb_nodeid, in print_format1_lock()
61 lkb->lkb_remid); in print_format1_lock()
63 seq_printf(s, " Master: %08x", lkb->lkb_remid); in print_format1_lock()
66 if (lkb->lkb_wait_type) in print_format1_lock()
67 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1_lock()
74 struct dlm_lkb *lkb; in print_format1() local
128 list_for_each_entry(lkb, &res->res_grantqueue, lkb_statequeue) { in print_format1()
129 print_format1_lock(s, lkb, res); in print_format1()
135 list_for_each_entry(lkb, &res->res_convertqueue, lkb_statequeue) { in print_format1()
136 print_format1_lock(s, lkb, res); in print_format1()
142 list_for_each_entry(lkb, &res->res_waitqueue, lkb_statequeue) { in print_format1()
143 print_format1_lock(s, lkb, res); in print_format1()
152 list_for_each_entry(lkb, &res->res_lookup, lkb_rsb_lookup) { in print_format1()
154 lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); in print_format1()
155 if (lkb->lkb_wait_type) in print_format1()
156 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1()
165 static void print_format2_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format2_lock() argument
171 if (lkb->lkb_flags & DLM_IFL_USER) { in print_format2_lock()
172 if (lkb->lkb_ua) in print_format2_lock()
173 xid = lkb->lkb_ua->xid; in print_format2_lock()
177 us = ktime_to_us(ktime_sub(ktime_get(), lkb->lkb_timestamp)); in print_format2_lock()
183 lkb->lkb_id, in print_format2_lock()
184 lkb->lkb_nodeid, in print_format2_lock()
185 lkb->lkb_remid, in print_format2_lock()
186 lkb->lkb_ownpid, in print_format2_lock()
188 lkb->lkb_exflags, in print_format2_lock()
189 lkb->lkb_flags, in print_format2_lock()
190 lkb->lkb_status, in print_format2_lock()
191 lkb->lkb_grmode, in print_format2_lock()
192 lkb->lkb_rqmode, in print_format2_lock()
201 struct dlm_lkb *lkb; in print_format2() local
205 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2()
206 print_format2_lock(s, lkb, r); in print_format2()
211 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2()
212 print_format2_lock(s, lkb, r); in print_format2()
217 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format2()
218 print_format2_lock(s, lkb, r); in print_format2()
226 static void print_format3_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format3_lock() argument
231 if (lkb->lkb_flags & DLM_IFL_USER) { in print_format3_lock()
232 if (lkb->lkb_ua) in print_format3_lock()
233 xid = lkb->lkb_ua->xid; in print_format3_lock()
237 lkb->lkb_id, in print_format3_lock()
238 lkb->lkb_nodeid, in print_format3_lock()
239 lkb->lkb_remid, in print_format3_lock()
240 lkb->lkb_ownpid, in print_format3_lock()
242 lkb->lkb_exflags, in print_format3_lock()
243 lkb->lkb_flags, in print_format3_lock()
244 lkb->lkb_status, in print_format3_lock()
245 lkb->lkb_grmode, in print_format3_lock()
246 lkb->lkb_rqmode, in print_format3_lock()
247 lkb->lkb_last_bast.mode, in print_format3_lock()
249 lkb->lkb_wait_type, in print_format3_lock()
250 lkb->lkb_lvbseq, in print_format3_lock()
251 (unsigned long long)ktime_to_ns(lkb->lkb_timestamp), in print_format3_lock()
252 (unsigned long long)ktime_to_ns(lkb->lkb_last_bast_time)); in print_format3_lock()
257 struct dlm_lkb *lkb; in print_format3() local
304 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format3()
305 print_format3_lock(s, lkb, 0); in print_format3()
310 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format3()
311 print_format3_lock(s, lkb, 0); in print_format3()
316 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format3()
317 print_format3_lock(s, lkb, 0); in print_format3()
322 list_for_each_entry(lkb, &r->res_lookup, lkb_rsb_lookup) { in print_format3()
323 print_format3_lock(s, lkb, 1); in print_format3()
702 struct dlm_lkb *lkb; in waiters_read() local
709 list_for_each_entry(lkb, &ls->ls_waiters, lkb_wait_reply) { in waiters_read()
711 lkb->lkb_id, lkb->lkb_wait_type, in waiters_read()
712 lkb->lkb_nodeid, lkb->lkb_resource->res_name); in waiters_read()