From: Alasdair G Kergon Date: Fri, 27 Jul 2012 14:07:57 +0000 (+0100) Subject: dm thin: reduce endio_hook pool size X-Git-Tag: v3.2.27~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=95dc400b2616a83ef7f3d4df8dde299c177e9236;p=karo-tx-linux.git dm thin: reduce endio_hook pool size commit 7768ed33ccdc02801c4483fc5682dc66ace14aea upstream. Reduce the slab size used for the dm_thin_endio_hook mempool. Allocation has been seen to fail on machines with smaller amounts of memory due to fragmentation. lvm: page allocation failure. order:5, mode:0xd0 device-mapper: table: 253:38: thin-pool: Error creating pool's endio_hook mempool Signed-off-by: Alasdair G Kergon Signed-off-by: Ben Hutchings --- diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 532a9029c2ae..f68290dbd3eb 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -19,7 +19,7 @@ /* * Tunable constants */ -#define ENDIO_HOOK_POOL_SIZE 10240 +#define ENDIO_HOOK_POOL_SIZE 1024 #define DEFERRED_SET_SIZE 64 #define MAPPING_POOL_SIZE 1024 #define PRISON_CELLS 1024