[dm-devel] [PATCH] dm-thin-metadata: set the number of reserved buffers

Mikulas Patocka mpatocka at redhat.com
Mon Aug 15 17:09:58 UTC 2011


dm-thin-metadata: set the number of reserved buffers

Set the number of reserved buffers to 6.

Note: this value was found experimentally (I disabled new buffer 
allocation and tested that dm-thin deadlocks with 5 or less buffers). Joe, 
please so some code analysis and check the value.

Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>

---
 drivers/md/dm-thin-metadata.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-3.0-fast/drivers/md/dm-thin-metadata.c
===================================================================
--- linux-3.0-fast.orig/drivers/md/dm-thin-metadata.c	2011-08-15 16:45:09.000000000 +0200
+++ linux-3.0-fast/drivers/md/dm-thin-metadata.c	2011-08-15 17:04:13.000000000 +0200
@@ -561,7 +561,7 @@ struct dm_pool_metadata *dm_pool_metadat
 	int create;
 
 	bm = dm_block_manager_create(bdev, THIN_METADATA_BLOCK_SIZE,
-				     THIN_METADATA_CACHE_SIZE, 3);
+				     THIN_METADATA_CACHE_SIZE, 6);
 	if (!bm) {
 		DMERR("could not create block manager");
 		return ERR_PTR(-ENOMEM);




More information about the dm-devel mailing list