Lines Matching refs:lkb
52 static void print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format1_lock() argument
55 seq_printf(s, "%08x %s", lkb->lkb_id, print_lockmode(lkb->lkb_grmode)); in print_format1_lock()
57 if (lkb->lkb_status == DLM_LKSTS_CONVERT || in print_format1_lock()
58 lkb->lkb_status == DLM_LKSTS_WAITING) in print_format1_lock()
59 seq_printf(s, " (%s)", print_lockmode(lkb->lkb_rqmode)); in print_format1_lock()
61 if (lkb->lkb_nodeid) { in print_format1_lock()
62 if (lkb->lkb_nodeid != res->res_nodeid) in print_format1_lock()
63 seq_printf(s, " Remote: %3d %08x", lkb->lkb_nodeid, in print_format1_lock()
64 lkb->lkb_remid); in print_format1_lock()
66 seq_printf(s, " Master: %08x", lkb->lkb_remid); in print_format1_lock()
69 if (lkb->lkb_wait_type) in print_format1_lock()
70 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1_lock()
77 struct dlm_lkb *lkb; in print_format1() local
131 list_for_each_entry(lkb, &res->res_grantqueue, lkb_statequeue) { in print_format1()
132 print_format1_lock(s, lkb, res); in print_format1()
138 list_for_each_entry(lkb, &res->res_convertqueue, lkb_statequeue) { in print_format1()
139 print_format1_lock(s, lkb, res); in print_format1()
145 list_for_each_entry(lkb, &res->res_waitqueue, lkb_statequeue) { in print_format1()
146 print_format1_lock(s, lkb, res); in print_format1()
155 list_for_each_entry(lkb, &res->res_lookup, lkb_rsb_lookup) { in print_format1()
157 lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); in print_format1()
158 if (lkb->lkb_wait_type) in print_format1()
159 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1()
168 static void print_format2_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format2_lock() argument
174 if (test_bit(DLM_DFL_USER_BIT, &lkb->lkb_dflags)) { in print_format2_lock()
175 if (lkb->lkb_ua) in print_format2_lock()
176 xid = lkb->lkb_ua->xid; in print_format2_lock()
180 us = ktime_to_us(ktime_sub(ktime_get(), lkb->lkb_timestamp)); in print_format2_lock()
186 lkb->lkb_id, in print_format2_lock()
187 lkb->lkb_nodeid, in print_format2_lock()
188 lkb->lkb_remid, in print_format2_lock()
189 lkb->lkb_ownpid, in print_format2_lock()
191 lkb->lkb_exflags, in print_format2_lock()
192 dlm_iflags_val(lkb), in print_format2_lock()
193 lkb->lkb_status, in print_format2_lock()
194 lkb->lkb_grmode, in print_format2_lock()
195 lkb->lkb_rqmode, in print_format2_lock()
204 struct dlm_lkb *lkb; in print_format2() local
208 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2()
209 print_format2_lock(s, lkb, r); in print_format2()
214 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2()
215 print_format2_lock(s, lkb, r); in print_format2()
220 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format2()
221 print_format2_lock(s, lkb, r); in print_format2()
229 static void print_format3_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format3_lock() argument
234 if (test_bit(DLM_DFL_USER_BIT, &lkb->lkb_dflags)) { in print_format3_lock()
235 if (lkb->lkb_ua) in print_format3_lock()
236 xid = lkb->lkb_ua->xid; in print_format3_lock()
240 lkb->lkb_id, in print_format3_lock()
241 lkb->lkb_nodeid, in print_format3_lock()
242 lkb->lkb_remid, in print_format3_lock()
243 lkb->lkb_ownpid, in print_format3_lock()
245 lkb->lkb_exflags, in print_format3_lock()
246 dlm_iflags_val(lkb), in print_format3_lock()
247 lkb->lkb_status, in print_format3_lock()
248 lkb->lkb_grmode, in print_format3_lock()
249 lkb->lkb_rqmode, in print_format3_lock()
250 lkb->lkb_last_bast_mode, in print_format3_lock()
252 lkb->lkb_wait_type, in print_format3_lock()
253 lkb->lkb_lvbseq, in print_format3_lock()
254 (unsigned long long)ktime_to_ns(lkb->lkb_timestamp), in print_format3_lock()
255 (unsigned long long)ktime_to_ns(lkb->lkb_last_bast_time)); in print_format3_lock()
260 struct dlm_lkb *lkb; in print_format3() local
307 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format3()
308 print_format3_lock(s, lkb, 0); in print_format3()
313 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format3()
314 print_format3_lock(s, lkb, 0); in print_format3()
319 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format3()
320 print_format3_lock(s, lkb, 0); in print_format3()
325 list_for_each_entry(lkb, &r->res_lookup, lkb_rsb_lookup) { in print_format3()
326 print_format3_lock(s, lkb, 1); in print_format3()
369 static void print_format5_lock(struct seq_file *s, struct dlm_lkb *lkb) in print_format5_lock() argument
375 spin_lock(&lkb->lkb_cb_lock); in print_format5_lock()
376 list_for_each_entry(cb, &lkb->lkb_callbacks, list) { in print_format5_lock()
378 lkb->lkb_id, in print_format5_lock()
379 dlm_iflags_val(lkb), in print_format5_lock()
385 spin_unlock(&lkb->lkb_cb_lock); in print_format5_lock()
390 struct dlm_lkb *lkb; in print_format5() local
394 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format5()
395 print_format5_lock(s, lkb); in print_format5()
400 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format5()
401 print_format5_lock(s, lkb); in print_format5()
406 list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) { in print_format5()
407 print_format5_lock(s, lkb); in print_format5()
822 struct dlm_lkb *lkb; in waiters_read() local
829 list_for_each_entry(lkb, &ls->ls_waiters, lkb_wait_reply) { in waiters_read()
831 lkb->lkb_id, lkb->lkb_wait_type, in waiters_read()
832 lkb->lkb_nodeid, lkb->lkb_resource->res_name); in waiters_read()