Re: [Resend][Patch v2] kexec: increase max of kexec segments and usedynamic allocation

From: Neil Horman
Date: Fri Aug 13 2010 - 06:53:03 EST


On Fri, Aug 13, 2010 at 01:38:54AM -0400, Amerigo Wang wrote:
>
> Currently KEXEC_SEGMENT_MAX is only 16 which is too small for machine with
> many memory ranges. When hibernate on a machine with disjoint memory we do
> need one segment for each memory region. Increase this hard limit to 16K
> which is reasonably large.
>
> And change ->segment from a static array to a dynamically allocated memory.
>
> Cc: Neil Horman <nhorman@xxxxxxxxxx>
> Cc: Vivek Goyal <vgoyal@xxxxxxxxxx>
> Cc: huang ying <huang.ying.caritas@xxxxxxxxx>
> Cc: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Cc: Paul Mackerras <paulus@xxxxxxxxx>
> Signed-off-by: WANG Cong <amwang@xxxxxxxxxx>
>
Concur with Simon

Reviewed-by: Neil Horman <nhorman@xxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/