Searched refs:lock_hash (Results 1 – 3 of 3) sorted by relevance
| /netbsd-src/external/gpl2/lvm2/dist/daemons/clvmd/ |
| H A D | clvmd-command.c | 196 struct dm_hash_table *lock_hash; in lock_vg() local 210 lock_hash = (struct dm_hash_table *)client->bits.localsock.private; in lock_vg() 213 lock_hash = dm_hash_create(3); in lock_vg() 214 if (!lock_hash) in lock_vg() 216 client->bits.localsock.private = (void *)lock_hash; in lock_vg() 226 lkid = (int)(long)dm_hash_lookup(lock_hash, lockname); in lock_vg() 234 dm_hash_remove(lock_hash, lockname); in lock_vg() 246 dm_hash_insert(lock_hash, lockname, (void *)(long)lkid); in lock_vg() 344 struct dm_hash_table *lock_hash = in cmd_client_cleanup() local 347 dm_hash_iterate(v, lock_hash) { in cmd_client_cleanup() [all …]
|
| H A D | clvmd-gulm.c | 67 static struct dm_hash_table *lock_hash; variable 188 lock_hash = dm_hash_create(10); in _init_cluster() 519 lwait = dm_hash_lookup(lock_hash, key); in lock_lock_state() 745 dm_hash_insert(lock_hash, resource, &lwait); in _lock_resource() 761 dm_hash_remove(lock_hash, resource); in _lock_resource() 777 dm_hash_insert(lock_hash, resource, &lwait); in _unlock_resource() 800 dm_hash_remove(lock_hash, resource); in _unlock_resource()
|
| H A D | clvmd-openais.c | 84 static struct dm_hash_table *lock_hash; variable 341 lock_hash = dm_hash_create(10); in _init_cluster() 542 dm_hash_insert(lock_hash, resource, linfo); in _lock_resource() 554 linfo = dm_hash_lookup(lock_hash, resource); in _unlock_resource() 567 dm_hash_remove(lock_hash, resource); in _unlock_resource()
|