Lines Matching refs:res

35 void dlm_print_one_lock_resource(struct dlm_lock_resource *res)
37 spin_lock(&res->spinlock);
38 __dlm_print_one_lock_resource(res);
39 spin_unlock(&res->spinlock);
42 static void dlm_print_lockres_refmap(struct dlm_lock_resource *res)
45 assert_spin_locked(&res->spinlock);
50 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit);
56 printk("], inflight=%u\n", res->inflight_locks);
82 void __dlm_print_one_lock_resource(struct dlm_lock_resource *res)
87 assert_spin_locked(&res->spinlock);
89 stringify_lockname(res->lockname.name, res->lockname.len,
92 buf, res->owner, res->state);
94 res->last_used, kref_read(&res->refs),
95 list_empty(&res->purge) ? "no" : "yes");
98 list_empty(&res->dirty) ? "no" : "yes",
99 list_empty(&res->recovering) ? "no" : "yes",
100 res->migration_pending ? "yes" : "no");
102 res->inflight_locks, atomic_read(&res->asts_reserved));
103 dlm_print_lockres_refmap(res);
105 list_for_each_entry(lock, &res->granted, list) {
109 list_for_each_entry(lock, &res->converting, list) {
113 list_for_each_entry(lock, &res->blocked, list) {
352 struct dlm_lock_resource *res;
360 list_for_each_entry(res, &dlm->purge_list, purge) {
364 spin_lock(&res->spinlock);
365 out += stringify_lockname(res->lockname.name,
366 res->lockname.len,
369 (jiffies - res->last_used)/HZ);
370 spin_unlock(&res->spinlock);
488 static int dump_lockres(struct dlm_lock_resource *res, char *buf, int len)
495 out += stringify_lockname(res->lockname.name, res->lockname.len,
503 res->owner, res->state, res->last_used,
504 !list_empty(&res->purge),
505 !list_empty(&res->dirty),
506 !list_empty(&res->recovering),
507 res->inflight_locks, res->migration_pending,
508 atomic_read(&res->asts_reserved),
509 kref_read(&res->refs));
513 out += stringify_nodemap(res->refmap, O2NM_MAX_NODES,
521 "%02x", (unsigned char)res->lvb[i]);
525 list_for_each_entry(lock, &res->granted, list)
529 list_for_each_entry(lock, &res->converting, list)
533 list_for_each_entry(lock, &res->blocked, list)
546 struct dlm_lock_resource *res = NULL;
561 list_for_each_entry(res, track_list, tracking) {
562 if (&res->tracking == &dlm->tracking_list)
563 res = NULL;
565 dlm_lockres_get(res);
573 dl->dl_res = res;
575 if (res) {
576 spin_lock(&res->spinlock);
577 dump_lockres(res, dl->dl_buf, dl->dl_len - 1);
578 spin_unlock(&res->spinlock);