[Aoetools-discuss] adding entropy from aoe requests
Brought to you by:
ecashin,
elcapitansam
From: Lazy <la...@gm...> - 2008-04-10 11:57:29
|
Hello, Please take a look at this patch. I have tested it multiple times and it seems to work. Is it the right way to gather randomness from aoe ? I need it because our whole server is running on aoe, and it is short on entropy. diff -ru aoe6-59/linux/drivers/block/aoe/aoeblk.c aoe6-59/linux/drivers/block/aoe/aoeblk.c --- aoe6-59/linux/drivers/block/aoe/aoeblk.c 2008-02-01 23:01:19.000000000 +0100 +++ aoe6-59_entro/linux/drivers/block/aoe/aoeblk.c 2008-04-10 13:24:01.670391368 +0200 @@ -13,6 +13,8 @@ #include "aoe.h" #include "disk_attr.h" +#define AOE_ADD_RANDOMNESS + static struct kmem_cache *buf_pool_cache; /* GPFS needs a larger value than the default. */ @@ -247,6 +249,11 @@ } return; } + +#ifdef AOE_ADD_RANDOMNESS + add_disk_randomness( d->gd ); +#endif + aoecmd_work(d); } -- Michal Grzedzicki |