From: Daniel Stodden Date: Thu, 9 Sep 2010 09:05:37 +0000 (-0700) Subject: PR-1053: Fix bounce buffer allocation size. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8492648ac360f29c00b9ec07ea9c35a9ede7f556;p=people%2Fdstodden%2Fblktap.git PR-1053: Fix bounce buffer allocation size. 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 --- diff --git a/drivers/block-lcache.c b/drivers/block-lcache.c index 451f4e2..dd9dba8 100644 --- a/drivers/block-lcache.c +++ b/drivers/block-lcache.c @@ -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;