diff options
-rw-r--r-- | drivers/md/dm-thin-metadata.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c index acd89ec825d5..31f9827dfb56 100644 --- a/drivers/md/dm-thin-metadata.c +++ b/drivers/md/dm-thin-metadata.c | |||
@@ -80,6 +80,12 @@ | |||
80 | #define THIN_METADATA_CACHE_SIZE 64 | 80 | #define THIN_METADATA_CACHE_SIZE 64 |
81 | #define SECTOR_TO_BLOCK_SHIFT 3 | 81 | #define SECTOR_TO_BLOCK_SHIFT 3 |
82 | 82 | ||
83 | /* | ||
84 | * 3 for btree insert + | ||
85 | * 2 for btree lookup used within space map | ||
86 | */ | ||
87 | #define THIN_MAX_CONCURRENT_LOCKS 5 | ||
88 | |||
83 | /* This should be plenty */ | 89 | /* This should be plenty */ |
84 | #define SPACE_MAP_ROOT_SIZE 128 | 90 | #define SPACE_MAP_ROOT_SIZE 128 |
85 | 91 | ||
@@ -668,13 +674,9 @@ struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev, | |||
668 | return ERR_PTR(-ENOMEM); | 674 | return ERR_PTR(-ENOMEM); |
669 | } | 675 | } |
670 | 676 | ||
671 | /* | ||
672 | * Max hex locks: | ||
673 | * 3 for btree insert + | ||
674 | * 2 for btree lookup used within space map | ||
675 | */ | ||
676 | bm = dm_block_manager_create(bdev, THIN_METADATA_BLOCK_SIZE, | 677 | bm = dm_block_manager_create(bdev, THIN_METADATA_BLOCK_SIZE, |
677 | THIN_METADATA_CACHE_SIZE, 5); | 678 | THIN_METADATA_CACHE_SIZE, |
679 | THIN_MAX_CONCURRENT_LOCKS); | ||
678 | if (!bm) { | 680 | if (!bm) { |
679 | DMERR("could not create block manager"); | 681 | DMERR("could not create block manager"); |
680 | kfree(pmd); | 682 | kfree(pmd); |