mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
Increase hash table size to 1024 lv names and 64 pv uuids
This commit is contained in:
parent
3a00204a23
commit
135af49da5
@ -1,5 +1,6 @@
|
||||
Version 2.02.83 -
|
||||
===================================
|
||||
Increase hash table size to 1024 lv names and 64 pv uuids.
|
||||
Remove fs_unlock() from lv_resume path.
|
||||
Fix wipe size when setting up mda.
|
||||
Remove unneeded checks for open_count in lv_info().
|
||||
|
@ -197,7 +197,7 @@ static int get_current_lock(char *resource)
|
||||
void init_lvhash()
|
||||
{
|
||||
/* Create hash table for keeping LV locks & status */
|
||||
lv_hash = dm_hash_create(100);
|
||||
lv_hash = dm_hash_create(1024);
|
||||
pthread_mutex_init(&lv_hash_lock, NULL);
|
||||
pthread_mutex_init(&lvm_lock, NULL);
|
||||
}
|
||||
|
@ -756,7 +756,7 @@ static struct volume_group *_read_vg(struct format_instance *fid,
|
||||
* The pv hash memorises the pv section names -> pv
|
||||
* structures.
|
||||
*/
|
||||
if (!(pv_hash = dm_hash_create(32))) {
|
||||
if (!(pv_hash = dm_hash_create(64))) {
|
||||
log_error("Couldn't create hash table.");
|
||||
goto bad;
|
||||
}
|
||||
@ -784,7 +784,7 @@ static struct volume_group *_read_vg(struct format_instance *fid,
|
||||
* The lv hash memorises the lv section names -> lv
|
||||
* structures.
|
||||
*/
|
||||
if (!(lv_hash = dm_hash_create(32))) {
|
||||
if (!(lv_hash = dm_hash_create(1024))) {
|
||||
log_error("Couldn't create hash table.");
|
||||
goto bad;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user