From: Milan Broz Date: Mon, 4 Sep 2006 13:37:57 +0000 (+0200) Subject: [PATCH] fix creating zero sized bio mempools in low memory system X-Git-Tag: v2.6.19-rc1~640^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50be345560f1ffdcb15cc0e146416b80529a2ef2;p=pandora-kernel.git [PATCH] fix creating zero sized bio mempools in low memory system In the very low memory systems is in the init_bio call scale parameter set to zero and it leads to creating zero sized mempool. This patch prevents pool_entries parameter become zero, so the created pool have at least 1 entry. Mempool with 0 entries lead to incorrect behaviour of mempool_free. (Alloc requests are not waken up and system stalls in mempool_alloc->ioschedule). Signed-off-by: Milan Broz Signed-off-by: Jens Axboe --- Reading git-diff-tree failed