FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 08-15-2011, 05:09 PM
Mikulas Patocka
 
Default dm-thin-metadata: set the number of reserved buffers

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@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);

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 06:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org