Re: [RESEND] [PATCH] Softdog enhancement to optionally invoke panicinstead of reboot on timer expiry

From: Alan Cox
Date: Mon Mar 28 2011 - 11:16:17 EST


On Mon, 28 Mar 2011 20:35:02 +0530
Anithra P Janakiraman <anithra@xxxxxxxxxxxxxxxxxx> wrote:

> Hi,
>
> The patch is needed for determining the reason for failure when a
> softdog timeout occurs. We use softdog to watch for critical
> application failures and at the minimum a snapshot of the system would
> help to determine the cause. In such a scenario the application could
> fail but there isn't a softlockup as such, hence the detect softlockup
> feature does not help. The patch below adds a module parameter
> soft_panic which when set to 1 causes softdog to invoke panic instead
> of reboot when the softdog timer expires. By invoking panic we execute
> kdump if it is configured and the vmcore generated by kdump should
> provide atleast a minimal idea of the reason for failure.

Looks sensible to me.

Acked-by: Alan Cox <alan@xxxxxxxxxxxxxxx>

Alan
--
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/