Lines Matching refs:name
55 const char *name, in dlm_mle_equal() argument
62 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal()
77 const char *name,
83 char *name, unsigned int namelen);
101 const char *name, unsigned int namelen,
252 const char *name, in dlm_init_mle() argument
278 memcpy(mle->mname, res->lockname.name, res->lockname.len); in dlm_init_mle()
282 BUG_ON(!name); in dlm_init_mle()
284 memcpy(mle->mname, name, namelen); in dlm_init_mle()
286 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle()
324 char *name, unsigned int namelen) in dlm_find_mle() argument
332 hash = dlm_lockid_hash(name, namelen); in dlm_find_mle()
335 if (!dlm_mle_equal(dlm, tmpmle, name, namelen)) in dlm_find_mle()
474 BUG_ON(!res->lockname.name); 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()
525 const char *name, unsigned int namelen) in dlm_init_lockres() argument
533 qname = (char *) res->lockname.name; in dlm_init_lockres()
534 memcpy(qname, name, namelen); in dlm_init_lockres()
537 res->lockname.hash = dlm_lockid_hash(name, namelen); in dlm_init_lockres()
579 const char *name, in dlm_new_lockres() argument
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()
592 dlm_init_lockres(dlm, res, name, namelen); in dlm_new_lockres()
607 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_set_refmap_bit()
618 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_clear_refmap_bit()
628 mlog(0, "%s: res %.*s, inflight++: now %u, %ps()\n", dlm->name, in __dlm_lockres_grab_inflight_ref()
629 res->lockname.len, res->lockname.name, res->inflight_locks, in __dlm_lockres_grab_inflight_ref()
649 mlog(0, "%s: res %.*s, inflight--: now %u, %ps()\n", dlm->name, in dlm_lockres_drop_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()
774 res->lockname.name); in dlm_get_lock_resource()
835 dlm->name, namelen, lockid, in dlm_get_lock_resource()
868 dlm->name, namelen, (char *)lockid, bit); in dlm_get_lock_resource()
899 "master $RECOVERY lock now\n", dlm->name); in dlm_get_lock_resource()
904 "change\n", dlm->name); in dlm_get_lock_resource()
919 dlm->name, namelen, (char *)lockid, bit); in dlm_get_lock_resource()
948 "master is %u, keep going\n", dlm->name, namelen, 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()
1018 mlog(0, "%s:%.*s: owner is suddenly %u\n", dlm->name, in dlm_wait_for_lock_mastery()
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()
1108 mlog(0, "%s:%.*s: waiting again\n", dlm->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()
1253 "now\n", dlm->name, in dlm_restart_lock_mastery()
1255 res->lockname.name, in dlm_restart_lock_mastery()
1269 dlm->name, in dlm_restart_lock_mastery()
1271 res->lockname.name); in dlm_restart_lock_mastery()
1319 memcpy(request.name, mle->mname, request.namelen); in dlm_do_master_request()
1358 "reference\n", dlm->name, res->lockname.len, in dlm_do_master_request()
1359 res->lockname.name, to); in dlm_do_master_request()
1408 char *name; in dlm_master_request_handler() local
1423 name = request->name; in dlm_master_request_handler()
1425 hash = dlm_lockid_hash(name, namelen); in dlm_master_request_handler()
1434 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_master_request_handler()
1498 found = dlm_find_mle(dlm, &tmpmle, name, namelen); in dlm_master_request_handler()
1559 found = dlm_find_mle(dlm, &tmpmle, name, namelen); in dlm_master_request_handler()
1578 dlm_init_mle(mle, DLM_MLE_BLOCK, dlm, NULL, name, namelen); in dlm_master_request_handler()
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()
1682 memcpy(assert.name, lockname, namelen); in dlm_do_assert_master()
1766 char *name; in dlm_assert_master_handler() local
1775 name = assert->name; in dlm_assert_master_handler()
1777 hash = dlm_lockid_hash(name, namelen); in dlm_assert_master_handler()
1792 if (!dlm_find_mle(dlm, &mle, name, namelen)) { in dlm_assert_master_handler()
1796 namelen, name); in dlm_assert_master_handler()
1804 namelen, name); in dlm_assert_master_handler()
1817 assert->node_idx, namelen, name, bit, in dlm_assert_master_handler()
1825 dlm->name, namelen, name, in dlm_assert_master_handler()
1830 dlm->name, namelen, name, in dlm_assert_master_handler()
1843 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_assert_master_handler()
1848 "RECOVERING!\n", assert->node_idx, namelen, name); in dlm_assert_master_handler()
1857 name); in dlm_assert_master_handler()
1867 namelen, name); in dlm_assert_master_handler()
1873 res->owner, namelen, name); in dlm_assert_master_handler()
1881 namelen, name); in dlm_assert_master_handler()
1891 mle->master, namelen, name); in dlm_assert_master_handler()
1933 res->lockname.len, res->lockname.name, in dlm_assert_master_handler()
1968 "inuse=%d\n", dlm->name, namelen, name, in dlm_assert_master_handler()
1987 res->owner, namelen, name); in dlm_assert_master_handler()
2008 assert->node_idx, dlm->name, namelen, name); in dlm_assert_master_handler()
2015 dlm->name, namelen, name, assert->node_idx); in dlm_assert_master_handler()
2069 res->lockname.name); in dlm_dispatch_assert_master()
2136 res->lockname.len, res->lockname.name, dlm->node_num); in dlm_assert_master_worker()
2198 "lock. must wait.\n", dlm->name, in dlm_pre_master_reco_lockres()
2203 mlog(0, "%s: reco lock master is %u\n", dlm->name, in dlm_pre_master_reco_lockres()
2222 lockname = res->lockname.name; 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()
2255 char *name; in dlm_deref_lockres_handler() local
2267 name = deref->name; in dlm_deref_lockres_handler()
2280 hash = dlm_lockid_hash(name, namelen); in dlm_deref_lockres_handler()
2283 res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); in dlm_deref_lockres_handler()
2287 dlm->name, namelen, name); in dlm_deref_lockres_handler()
2309 "but it is already dropped!\n", dlm->name, in dlm_deref_lockres_handler()
2310 res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_handler()
2350 char *name; in dlm_deref_lockres_done_handler() local
2359 name = deref->name; in dlm_deref_lockres_done_handler()
2372 hash = dlm_lockid_hash(name, namelen); in dlm_deref_lockres_done_handler()
2375 res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); in dlm_deref_lockres_done_handler()
2379 dlm->name, namelen, name); in dlm_deref_lockres_done_handler()
2388 "but it is already derefed!\n", dlm->name, in dlm_deref_lockres_done_handler()
2389 res->lockname.len, res->lockname.name, node); in dlm_deref_lockres_done_handler()
2416 lockname = res->lockname.name; in dlm_drop_lockres_ref_done()
2423 memcpy(deref.name, lockname, namelen); in dlm_drop_lockres_ref_done()
2429 " to node %u\n", dlm->name, namelen, 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()
2467 "but it is already dropped!\n", dlm->name, 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()
2547 const char *name; in dlm_migrate_lockres() local
2555 name = res->lockname.name; in dlm_migrate_lockres()
2558 mlog(0, "%s: Migrating %.*s to node %u\n", dlm->name, namelen, name, in dlm_migrate_lockres()
2582 ret = dlm_add_migration_mle(dlm, res, mle, &oldmle, name, 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()
2745 mlog(0, "%s: Migrating %.*s to %u, returns %d\n", dlm->name, namelen, in dlm_migrate_lockres()
2746 name, target, ret); 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()
2963 "migrating lockres, clearing\n", dlm->name, in dlm_remove_nonlocal_locks()
2964 res->lockname.len, res->lockname.name, bit); in dlm_remove_nonlocal_locks()
3033 memcpy(migrate.name, res->lockname.name, migrate.namelen); in dlm_do_migrate_request()
3059 "MIGRATE_REQUEST to node %u\n", dlm->name, in dlm_do_migrate_request()
3060 migrate.namelen, migrate.name, ret, nodenum); in dlm_do_migrate_request()
3076 dlm->name, res->lockname.len, res->lockname.name, in dlm_do_migrate_request()
3106 const char *name; in dlm_migrate_request_handler() local
3113 name = migrate->name; in dlm_migrate_request_handler()
3115 hash = dlm_lockid_hash(name, namelen); in dlm_migrate_request_handler()
3127 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_migrate_request_handler()
3148 name, namelen, in dlm_migrate_request_handler()
3183 const char *name, unsigned int namelen, in dlm_add_migration_mle() argument
3195 found = dlm_find_mle(dlm, oldmle, (char *)name, namelen); in dlm_add_migration_mle()
3204 namelen, name); in dlm_add_migration_mle()
3215 namelen, name); in dlm_add_migration_mle()
3231 "migration\n", dlm->name, in dlm_add_migration_mle()
3232 namelen, name, master, in dlm_add_migration_mle()
3240 dlm_init_mle(mle, DLM_MLE_MIGRATION, dlm, res, name, namelen); in dlm_add_migration_mle()
3335 mlog(0, "dlm=%s, dead node=%u\n", dlm->name, dead_node); in dlm_clean_master_list()
3381 dlm->name, dead_node, in dlm_clean_master_list()
3391 "%u to %u!\n", dlm->name, dead_node, mle->master, in dlm_clean_master_list()
3439 res->lockname.len, res->lockname.name); in dlm_finish_migration()
3453 res->lockname.len, res->lockname.name, old_master); in dlm_finish_migration()