Lines Matching refs:lockname

278 		memcpy(mle->mname, res->lockname.name, res->lockname.len);  in dlm_init_mle()
279 mle->mnamelen = res->lockname.len; in dlm_init_mle()
280 mle->mnamehash = res->lockname.hash; in dlm_init_mle()
474 BUG_ON(!res->lockname.name); in dlm_lockres_release()
476 mlog(0, "destroying lockres %.*s\n", res->lockname.len, in dlm_lockres_release()
477 res->lockname.name); in dlm_lockres_release()
491 res->lockname.len, res->lockname.name, in dlm_lockres_release()
513 kmem_cache_free(dlm_lockname_cache, (void *)res->lockname.name); in dlm_lockres_release()
533 qname = (char *) res->lockname.name; in dlm_init_lockres()
536 res->lockname.len = namelen; in dlm_init_lockres()
537 res->lockname.hash = dlm_lockid_hash(name, namelen); in dlm_init_lockres()
588 res->lockname.name = kmem_cache_zalloc(dlm_lockname_cache, GFP_NOFS); in dlm_new_lockres()
589 if (!res->lockname.name) in dlm_new_lockres()
606 mlog(0, "res %.*s, set node %u, %ps()\n", res->lockname.len, in dlm_lockres_set_refmap_bit()
607 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_set_refmap_bit()
617 mlog(0, "res %.*s, clr node %u, %ps()\n", res->lockname.len, in dlm_lockres_clear_refmap_bit()
618 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_clear_refmap_bit()
629 res->lockname.len, res->lockname.name, res->inflight_locks, in __dlm_lockres_grab_inflight_ref()
650 res->lockname.len, res->lockname.name, res->inflight_locks, in dlm_lockres_drop_inflight_ref()
662 dlm->name, res->lockname.len, res->lockname.name, in __dlm_lockres_grab_inflight_worker()
673 dlm->name, res->lockname.len, res->lockname.name, in __dlm_lockres_drop_inflight_worker()
773 res->lockname.len, in dlm_get_lock_resource()
774 res->lockname.name); in dlm_get_lock_resource()
959 "request now, blocked=%d\n", dlm->name, res->lockname.len, in dlm_get_lock_resource()
960 res->lockname.name, blocked); in dlm_get_lock_resource()
964 dlm->name, res->lockname.len, in dlm_get_lock_resource()
965 res->lockname.name, blocked); in dlm_get_lock_resource()
973 mlog(0, "%s: res %.*s, Mastered by %u\n", dlm->name, res->lockname.len, in dlm_get_lock_resource()
974 res->lockname.name, res->owner); in dlm_get_lock_resource()
1019 res->lockname.len, res->lockname.name, res->owner); in dlm_wait_for_lock_mastery()
1048 dlm->name, res->lockname.len, res->lockname.name); in dlm_wait_for_lock_mastery()
1053 dlm->name, res->lockname.len, res->lockname.name, in dlm_wait_for_lock_mastery()
1063 "rechecking now\n", dlm->name, res->lockname.len, in dlm_wait_for_lock_mastery()
1064 res->lockname.name); in dlm_wait_for_lock_mastery()
1069 "for %s:%.*s\n", dlm->name, res->lockname.len, in dlm_wait_for_lock_mastery()
1070 res->lockname.name); in dlm_wait_for_lock_mastery()
1109 res->lockname.len, res->lockname.name); in dlm_wait_for_lock_mastery()
1121 res->lockname.len, res->lockname.name, m); in dlm_wait_for_lock_mastery()
1254 res->lockname.len, in dlm_restart_lock_mastery()
1255 res->lockname.name, in dlm_restart_lock_mastery()
1270 res->lockname.len, in dlm_restart_lock_mastery()
1271 res->lockname.name); in dlm_restart_lock_mastery()
1358 "reference\n", dlm->name, res->lockname.len, in dlm_do_master_request()
1359 res->lockname.name, to); in dlm_do_master_request()
1616 dlm->node_num, res->lockname.len, res->lockname.name); in dlm_master_request_handler()
1659 const char *lockname = res->lockname.name; in dlm_do_assert_master() local
1660 unsigned int namelen = res->lockname.len; in dlm_do_assert_master()
1678 namelen, lockname); in dlm_do_assert_master()
1682 memcpy(assert.name, lockname, namelen); in dlm_do_assert_master()
1703 "got %d.\n", namelen, lockname, to, r); in dlm_do_assert_master()
1706 if (dlm_find_mle(dlm, &mle, (char *)lockname, in dlm_do_assert_master()
1720 namelen, lockname, to); in dlm_do_assert_master()
1726 namelen, lockname, to); in dlm_do_assert_master()
1732 namelen, lockname, to); in dlm_do_assert_master()
1933 res->lockname.len, res->lockname.name, in dlm_assert_master_handler()
2068 mlog(0, "IGNORE HIGHER: %.*s\n", res->lockname.len, in dlm_dispatch_assert_master()
2069 res->lockname.name); in dlm_dispatch_assert_master()
2136 res->lockname.len, res->lockname.name, dlm->node_num); in dlm_assert_master_worker()
2219 const char *lockname; in dlm_drop_lockres_ref() local
2222 lockname = res->lockname.name; in dlm_drop_lockres_ref()
2223 namelen = res->lockname.len; in dlm_drop_lockres_ref()
2229 memcpy(deref.name, lockname, namelen); in dlm_drop_lockres_ref()
2235 dlm->name, namelen, lockname, ret, res->owner); in dlm_drop_lockres_ref()
2239 dlm->name, namelen, lockname, res->owner, r); in dlm_drop_lockres_ref()
2310 res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_handler()
2389 res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_done_handler()
2413 const char *lockname; in dlm_drop_lockres_ref_done() local
2416 lockname = res->lockname.name; in dlm_drop_lockres_ref_done()
2417 namelen = res->lockname.len; in dlm_drop_lockres_ref_done()
2423 memcpy(deref.name, lockname, namelen); in dlm_drop_lockres_ref_done()
2430 lockname, ret, node); in dlm_drop_lockres_ref_done()
2434 dlm->name, namelen, lockname, node, r); in dlm_drop_lockres_ref_done()
2463 dlm->name, res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_worker()
2468 res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_worker()
2514 "%s list\n", dlm->name, res->lockname.len, in dlm_is_lockres_migratable()
2515 res->lockname.name, in dlm_is_lockres_migratable()
2529 mlog(0, "%s: res %.*s, Migratable\n", dlm->name, res->lockname.len, in dlm_is_lockres_migratable()
2530 res->lockname.name); in dlm_is_lockres_migratable()
2555 name = res->lockname.name; in dlm_migrate_lockres()
2556 namelen = res->lockname.len; in dlm_migrate_lockres()
2606 "the target went down.\n", res->lockname.len, in dlm_migrate_lockres()
2607 res->lockname.name, target); in dlm_migrate_lockres()
2691 dlm->name, res->lockname.len, res->lockname.name); in dlm_migrate_lockres()
2697 dlm->name, res->lockname.len, in dlm_migrate_lockres()
2698 res->lockname.name, target); in dlm_migrate_lockres()
2712 dlm->name, res->lockname.len, res->lockname.name); in dlm_migrate_lockres()
2783 dlm->name, res->lockname.len, res->lockname.name, in dlm_empty_lockres()
2837 res->lockname.len, res->lockname.name, dlm->node_num, in dlm_mark_lockres_migrating()
2964 res->lockname.len, res->lockname.name, bit); in dlm_remove_nonlocal_locks()
3032 migrate.namelen = res->lockname.len; in dlm_do_migrate_request()
3033 memcpy(migrate.name, res->lockname.name, migrate.namelen); in dlm_do_migrate_request()
3076 dlm->name, res->lockname.len, res->lockname.name, in dlm_do_migrate_request()
3439 res->lockname.len, res->lockname.name); in dlm_finish_migration()
3453 res->lockname.len, res->lockname.name, old_master); in dlm_finish_migration()