[PATCH-v2] kdump: Enable kdump if 2nd-kernel is loaded.
Hidetoshi Seto
seto.hidetoshi at jp.fujitsu.com
Mon Jul 13 03:48:55 EDT 2009
Ken'ichi Ohmichi wrote:
> Signed-off-by: Ken'ichi Ohmichi <oomichi at mxs.nes.nec.co.jp>
> Acked-by: Simon Horman <horms at verge.net.au>
> ---
> --- a/kernel/kexec.c 2009-07-08 12:30:26.000000000 +0900
> +++ b/kernel/kexec.c 2009-07-13 13:49:03.000000000 +0900
> @@ -57,7 +57,7 @@ struct resource crashk_res = {
>
> int kexec_should_crash(struct task_struct *p)
> {
> - if (in_interrupt() || !p->pid || is_global_init(p) || panic_on_oops)
> + if (kexec_crash_image)
> return 1;
> return 0;
> }
Reviewed-by: Hidetoshi Seto <seto.hidetoshi at jp.fujitsu.com>
Thanks,
H.Seto
More information about the kexec
mailing list