]> xenbits.xensource.com Git - people/dstodden/blktap.git/commitdiff
PR-1053: Fix bounce buffer allocation size.
authorDaniel Stodden <daniel.stodden@citrix.com>
Thu, 9 Sep 2010 09:05:37 +0000 (02:05 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Thu, 9 Sep 2010 09:05:37 +0000 (02:05 -0700)
Anticipate significantly less than 2816 requests in flight.

Times 11 * 4k buffer space, this was worth 121MB memory, mlocked.

Since segment treqs are merged, use ring size with some extra headroom
for splits.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
drivers/block-lcache.c

index 451f4e26ebd5d7ccd185e4b9b8d10acb0abd3d76..dd9dba8098fd5abe1c0bb9ec29b9200da5b85dd4 100644 (file)
@@ -52,7 +52,7 @@
 #define BUG()           td_panic()
 #define BUG_ON(_cond)   if (_cond) { td_panic(); }
 
-#define LOCAL_CACHE_REQUESTS            (TAPDISK_DATA_REQUESTS << 3)
+#define LOCAL_CACHE_REQUESTS            (BLK_RING_SIZE*2)
 
 typedef struct local_cache              local_cache_t;